Class Pack
java.lang.Object
net.minecraft.server.packs.repository.Pack
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PackSourceprivate final booleanprivate final PackLocationInfoprivate static final org.slf4j.Loggerprivate final Pack.Metadataprivate final Pack.ResourcesSupplierprivate final PackSelectionConfig -
Constructor Summary
ConstructorsModifierConstructorDescriptionPack(PackLocationInfo p_326123_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_326375_, PackSelectionConfig p_326282_) privatePack(PackLocationInfo p_326123_, Pack.ResourcesSupplier p_249377_, Pack.Metadata p_326375_, PackSelectionConfig p_326282_, List<Pack> children) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetChatLink(boolean p_10438_) static InclusiveRange<Integer> getDeclaredPackVersions(String p_295795_, PackMetadataSection p_294612_) getId()getTitle()inthashCode()hidden()Returns a copy of the pack that is hidden.booleanbooleanisHidden()booleanlocation()open()static PackreadMetaAndCreate(PackLocationInfo p_326065_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, PackSelectionConfig p_326429_) static Pack.MetadatareadPackMetadata(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()
-