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 static final PackSource
private final boolean
private final PackLocationInfo
private static final org.slf4j.Logger
private final Pack.Metadata
private final Pack.ResourcesSupplier
private final PackSelectionConfig
-
Constructor Summary
ModifierConstructorDescriptionPack
(PackLocationInfo p_326123_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_326375_, PackSelectionConfig p_326282_) private
Pack
(PackLocationInfo p_326123_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_326375_, PackSelectionConfig p_326282_, List<Pack> children) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getChatLink
(boolean p_10438_) static InclusiveRange
<Integer> getDeclaredPackVersions
(String p_295795_, PackMetadataSection p_294612_) getId()
getTitle()
int
hashCode()
hidden()
Returns a copy of the pack that is hidden.boolean
boolean
isHidden()
boolean
location()
open()
static Pack
readMetaAndCreate
(PackLocationInfo p_326065_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, PackSelectionConfig p_326429_) static Pack.Metadata
readPackMetadata
(PackLocationInfo p_326060_, Pack.ResourcesSupplier p_326166_, int p_326341_) withChildren
(List<Pack> children) Returns a copy of the pack with the provided children in place of any children this pack currently has.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
location
-
resources
-
metadata
-
selectionConfig
-
children
-
CHILD_SOURCE
-
-
Constructor Details
-
Pack
public Pack(PackLocationInfo p_326123_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_326375_, PackSelectionConfig p_326282_) -
Pack
private Pack(PackLocationInfo p_326123_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_326375_, PackSelectionConfig p_326282_, List<Pack> children)
-
-
Method Details
-
readMetaAndCreate
@Nullable public static Pack readMetaAndCreate(PackLocationInfo p_326065_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, PackSelectionConfig p_326429_) -
readPackMetadata
@Nullable public static Pack.Metadata readPackMetadata(PackLocationInfo p_326060_, Pack.ResourcesSupplier p_326166_, int p_326341_) -
getDeclaredPackVersions
public static InclusiveRange<Integer> getDeclaredPackVersions(String p_295795_, PackMetadataSection p_294612_) -
location
-
getTitle
-
getDescription
-
getChatLink
-
getCompatibility
-
getRequestedFeatures
-
open
-
getId
-
selectionConfig
-
isRequired
public boolean isRequired() -
isFixedPosition
public boolean isFixedPosition() -
getDefaultPosition
-
getPackSource
-
isHidden
public boolean isHidden() -
getChildren
-
streamSelfAndChildren
-
withChildren
Returns a copy of the pack with the provided children in place of any children this pack currently has.- Returns:
- a copy of the pack with the provided children in place of any children this pack currently has
-
equals
-
hashCode
public int hashCode()
-