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 final Pack.Position
private final boolean
private final boolean
private final String
private final Pack.Info
private static final org.slf4j.Logger
private final PackSource
private final boolean
private final Pack.ResourcesSupplier
private final Component
-
Constructor Summary
ModifierConstructorDescriptionprivate
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 Summary
Modifier and TypeMethodDescriptionstatic 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_) boolean
getChatLink
(boolean p_10438_) private static InclusiveRange<Integer>
getDeclaredPackVersions
(String p_295795_, PackMetadataSection p_294612_) getId()
getTitle()
int
hashCode()
boolean
boolean
isHidden()
boolean
open()
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_) static Pack.Info
readPackInfo
(String p_250591_, Pack.ResourcesSupplier p_250739_, int p_294759_)
-
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_294759_) -
getDeclaredPackVersions
private 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() -
equals
-
hashCode
public int hashCode()
-