Class Pack
java.lang.Object
net.minecraft.server.packs.repository.Pack
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Pack.Positionprivate final booleanprivate final booleanprivate final Stringprivate final Pack.Infoprivate static final org.slf4j.Loggerprivate final PackSourceprivate final booleanprivate final Pack.ResourcesSupplierprivate final Component
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivatePack(String p_252218_, boolean p_248829_, Pack.ResourcesSupplier p_249377_, Component p_251718_, Pack.Info p_250162_, Pack.Position p_251298_, boolean p_249753_, PackSource p_251608_) privatePack(String p_252218_, boolean p_248829_, Pack.ResourcesSupplier p_249377_, Component p_251718_, Pack.Info p_250162_, Pack.Position p_251298_, boolean p_249753_, PackSource p_251608_, List<Pack> children) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic Packcreate(String p_252257_, Component p_248717_, boolean p_248811_, Pack.ResourcesSupplier p_248969_, Pack.Info p_251314_, Pack.Position p_252110_, boolean p_250237_, PackSource p_248524_) booleangetChatLink(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()booleanopen()static PackreadMetaAndCreate(String p_249649_, Component p_248632_, boolean p_251594_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, Pack.Position p_248706_, PackSource p_251233_) static Pack.InforeadPackInfo(String p_250591_, Pack.ResourcesSupplier p_250739_, int p_294759_) 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- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
id
- 
resources
- 
title
- 
info
- 
defaultPosition
- 
requiredprivate final boolean required
- 
fixedPositionprivate final boolean fixedPosition
- 
children
- 
packSource
 
- 
- 
Constructor Details- 
Packprivate Pack(String p_252218_, boolean p_248829_, Pack.ResourcesSupplier p_249377_, Component p_251718_, Pack.Info p_250162_, Pack.Position p_251298_, boolean p_249753_, PackSource p_251608_) 
- 
Packprivate Pack(String p_252218_, boolean p_248829_, Pack.ResourcesSupplier p_249377_, Component p_251718_, Pack.Info p_250162_, Pack.Position p_251298_, boolean p_249753_, PackSource p_251608_, List<Pack> children) 
 
- 
- 
Method Details- 
readMetaAndCreate@Nullable public static Pack readMetaAndCreate(String p_249649_, Component p_248632_, boolean p_251594_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, Pack.Position p_248706_, PackSource p_251233_) 
- 
createpublic static Pack create(String p_252257_, Component p_248717_, boolean p_248811_, Pack.ResourcesSupplier p_248969_, Pack.Info p_251314_, Pack.Position p_252110_, boolean p_250237_, PackSource p_248524_) 
- 
readPackInfo@Nullable public static Pack.Info readPackInfo(String p_250591_, Pack.ResourcesSupplier p_250739_, int p_294759_) 
- 
getDeclaredPackVersionspublic static InclusiveRange<Integer> getDeclaredPackVersions(String p_295795_, PackMetadataSection p_294612_) 
- 
getTitle
- 
getDescription
- 
getChatLink
- 
getCompatibility
- 
getRequestedFeatures
- 
open
- 
getId
- 
isRequiredpublic boolean isRequired()
- 
isFixedPositionpublic boolean isFixedPosition()
- 
getDefaultPosition
- 
getPackSource
- 
isHiddenpublic boolean isHidden()
- 
getChildren
- 
streamSelfAndChildren
- 
withChildrenReturns 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
- 
hashCodepublic int hashCode()
 
-