类 Pack
java.lang.Object
net.minecraft.server.packs.repository.Pack
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
static enum
static interface
-
字段概要
字段修饰符和类型字段说明private final PackCompatibility
private final Pack.Position
private final Component
private final boolean
private final boolean
private final String
private static final org.slf4j.Logger
private final PackSource
private final FeatureFlagSet
private final boolean
private final Pack.ResourcesSupplier
private final Component
-
构造器概要
构造器限定符构造器说明private
Pack
(String pId, boolean pRequired, Pack.ResourcesSupplier pResources, Component pTitle, Pack.Info pInfo, PackCompatibility pCompatibility, Pack.Position pDefaultPosition, boolean pFixedPosition, PackSource pPackSource) -
方法概要
修饰符和类型方法说明static Pack
create
(String pId, Component pTitle, boolean pRequired, Pack.ResourcesSupplier pResources, Pack.Info pInfo, PackType pPackType, Pack.Position pDefaultPosition, boolean pFixedPosition, PackSource pPackSource) boolean
getChatLink
(boolean pGreen) getId()
getTitle()
int
hashCode()
boolean
boolean
isHidden()
boolean
open()
static Pack
readMetaAndCreate
(String pId, Component pTitle, boolean pRequired, Pack.ResourcesSupplier pResources, PackType pPackType, Pack.Position pDefaultPosition, PackSource pPackSource) static Pack.Info
readPackInfo
(String pId, Pack.ResourcesSupplier pResources)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
id
-
resources
-
title
-
description
-
compatibility
-
requestedFeatures
-
defaultPosition
-
required
private final boolean required -
fixedPosition
private final boolean fixedPosition -
packSource
-
-
构造器详细资料
-
Pack
private Pack(String pId, boolean pRequired, Pack.ResourcesSupplier pResources, Component pTitle, Pack.Info pInfo, PackCompatibility pCompatibility, Pack.Position pDefaultPosition, boolean pFixedPosition, PackSource pPackSource)
-
-
方法详细资料
-
readMetaAndCreate
@Nullable public static Pack readMetaAndCreate(String pId, Component pTitle, boolean pRequired, Pack.ResourcesSupplier pResources, PackType pPackType, Pack.Position pDefaultPosition, PackSource pPackSource) -
create
public static Pack create(String pId, Component pTitle, boolean pRequired, Pack.ResourcesSupplier pResources, Pack.Info pInfo, PackType pPackType, Pack.Position pDefaultPosition, boolean pFixedPosition, PackSource pPackSource) -
readPackInfo
-
getTitle
-
getDescription
-
getChatLink
-
getCompatibility
-
getRequestedFeatures
-
open
-
getId
-
isRequired
public boolean isRequired() -
isFixedPosition
public boolean isFixedPosition() -
getDefaultPosition
-
getPackSource
-
isHidden
public boolean isHidden() -
equals
-
hashCode
public int hashCode()
-