Class Pack
java.lang.Object
net.minecraft.server.packs.repository.Pack
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static enum
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final PackLocationInfo
private static final org.slf4j.Logger
private final Pack.Metadata
private final Pack.ResourcesSupplier
private final PackSelectionConfig
-
Constructor Summary
ConstructorDescriptionPack
(PackLocationInfo p_330003_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_330761_, PackSelectionConfig p_334769_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getChatLink
(boolean p_10438_) private static InclusiveRange
<Integer> getDeclaredPackVersions
(String p_299045_, PackMetadataSection p_298414_) getId()
getTitle()
int
hashCode()
boolean
boolean
isHidden()
boolean
location()
open()
static Pack
readMetaAndCreate
(PackLocationInfo p_333251_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, PackSelectionConfig p_334202_) static Pack.Metadata
readPackMetadata
(PackLocationInfo p_330799_, Pack.ResourcesSupplier p_331172_, int p_333544_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
location
-
resources
-
metadata
-
selectionConfig
-
-
Constructor Details
-
Pack
public Pack(PackLocationInfo p_330003_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_330761_, PackSelectionConfig p_334769_)
-
-
Method Details
-
readMetaAndCreate
@Nullable public static Pack readMetaAndCreate(PackLocationInfo p_333251_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, PackSelectionConfig p_334202_) -
readPackMetadata
@Nullable public static Pack.Metadata readPackMetadata(PackLocationInfo p_330799_, Pack.ResourcesSupplier p_331172_, int p_333544_) -
getDeclaredPackVersions
private static InclusiveRange<Integer> getDeclaredPackVersions(String p_299045_, PackMetadataSection p_298414_) -
location
-
getTitle
-
getDescription
-
getChatLink
-
getCompatibility
-
getRequestedFeatures
-
open
-
getId
-
selectionConfig
-
isRequired
public boolean isRequired() -
isFixedPosition
public boolean isFixedPosition() -
getDefaultPosition
-
getPackSource
-
isHidden
public boolean isHidden() -
equals
-
hashCode
public int hashCode()
-