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 PackCompatibility
private final Pack.Position
private final Component
private final boolean
private final boolean
private final String
private static final org.slf4j.Logger
private final PackSource
private final FeatureFlagSet
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_, PackCompatibility p_250361_, 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_, PackType p_250264_, Pack.Position p_252110_, boolean p_250237_, PackSource p_248524_) boolean
getChatLink
(boolean p_10438_) 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_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
id
-
resources
-
title
-
description
-
compatibility
-
requestedFeatures
-
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_, PackCompatibility p_250361_, 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_, PackType p_250264_, Pack.Position p_252110_, boolean p_250237_, PackSource p_248524_) -
readPackInfo
-
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()
-