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_) -
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_) private static InclusiveRange<Integer>getDeclaredPackVersions(String p_299045_, PackMetadataSection p_298414_) getId()getTitle()inthashCode()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_299232_)
-
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 -
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_)
-
-
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_299232_) -
getDeclaredPackVersions
private static InclusiveRange<Integer> getDeclaredPackVersions(String p_299045_, PackMetadataSection p_298414_) -
getTitle
-
getDescription
-
getChatLink
-
getCompatibility
-
getRequestedFeatures
-
open
-
getId
-
isRequired
public boolean isRequired() -
isFixedPosition
public boolean isFixedPosition() -
getDefaultPosition
-
getPackSource
-
isHidden
public boolean isHidden() -
equals
-
hashCode
public int hashCode()
-