Class Pack
java.lang.Object
net.minecraft.server.packs.repository.Pack
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate PackCompatibility
private Pack.Position
private Component
private boolean
private boolean
private String
private static org.apache.logging.log4j.Logger
private PackSource
private boolean
private Supplier<PackResources>
private Component
-
Constructor Summary
ConstructorDescriptionPack(String p_10420_, boolean p_10421_, Supplier<PackResources> p_10422_, Component p_10423_, Component p_10424_, PackCompatibility p_10425_, Pack.Position p_10426_, boolean p_10427_, PackSource p_10428_)
Deprecated.Pack(String p_10420_, boolean p_10421_, Supplier<PackResources> p_10422_, Component p_10423_, Component p_10424_, PackCompatibility p_10425_, Pack.Position p_10426_, boolean p_10427_, PackSource p_10428_, boolean hidden)
Pack(String p_143865_, Component p_143866_, boolean p_143867_, Supplier<PackResources> p_143868_, PackMetadataSection p_143869_, PackType p_143870_, Pack.Position p_143871_, PackSource p_143872_)
Deprecated.Pack(String p_143865_, Component p_143866_, boolean p_143867_, Supplier<PackResources> p_143868_, PackMetadataSection p_143869_, PackType p_143870_, Pack.Position p_143871_, PackSource p_143872_, boolean hidden)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static Pack
create(String p_10431_, boolean p_10432_, Supplier<PackResources> p_10433_, Pack.PackConstructor p_10434_, Pack.Position p_10435_, PackSource p_10436_)
boolean
getChatLink(boolean p_10438_)
getId()
getTitle()
int
hashCode()
boolean
boolean
isHidden()
boolean
open()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
id
-
supplier
-
title
-
description
-
compatibility
-
defaultPosition
-
required
private final boolean required -
fixedPosition
private final boolean fixedPosition -
packSource
-
-
Constructor Details
-
Pack
@Deprecated public Pack(String p_10420_, boolean p_10421_, Supplier<PackResources> p_10422_, Component p_10423_, Component p_10424_, PackCompatibility p_10425_, Pack.Position p_10426_, boolean p_10427_, PackSource p_10428_)Deprecated. -
Pack
public Pack(String p_10420_, boolean p_10421_, Supplier<PackResources> p_10422_, Component p_10423_, Component p_10424_, PackCompatibility p_10425_, Pack.Position p_10426_, boolean p_10427_, PackSource p_10428_, boolean hidden) -
Pack
@Deprecated public Pack(String p_143865_, Component p_143866_, boolean p_143867_, Supplier<PackResources> p_143868_, PackMetadataSection p_143869_, PackType p_143870_, Pack.Position p_143871_, PackSource p_143872_)Deprecated. -
Pack
public Pack(String p_143865_, Component p_143866_, boolean p_143867_, Supplier<PackResources> p_143868_, PackMetadataSection p_143869_, PackType p_143870_, Pack.Position p_143871_, PackSource p_143872_, boolean hidden)
-
-
Method Details
-
create
@Nullable public static Pack create(String p_10431_, boolean p_10432_, Supplier<PackResources> p_10433_, Pack.PackConstructor p_10434_, Pack.Position p_10435_, PackSource p_10436_) -
getTitle
-
getDescription
-
getChatLink
-
getCompatibility
-
open
-
getId
-
isRequired
public boolean isRequired() -
isFixedPosition
public boolean isFixedPosition() -
getDefaultPosition
-
getPackSource
-
isHidden
public boolean isHidden() -
equals
-
hashCode
public int hashCode() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-