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 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 Summary
ConstructorsModifierConstructorDescriptionprivatePack(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 Summary
Modifier 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
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
id
 - 
resources
 - 
title
 - 
info
 - 
defaultPosition
 - 
required
private final boolean required - 
fixedPosition
private final boolean fixedPosition - 
children
 - 
packSource
 
 - 
 - 
Constructor Details
- 
Pack
private 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_)  - 
Pack
private 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_)  - 
create
public 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_)  - 
getDeclaredPackVersions
public static InclusiveRange<Integer> getDeclaredPackVersions(String p_295795_, PackMetadataSection p_294612_)  - 
getTitle
 - 
getDescription
 - 
getChatLink
 - 
getCompatibility
 - 
getRequestedFeatures
 - 
open
 - 
getId
 - 
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() 
 -