Package net.minecraft.resources
Class ResourcePackInfo
java.lang.Object
net.minecraft.resources.ResourcePackInfo
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final PackMetadataSection
private final PackCompatibility
private final ResourcePackInfo.Priority
private final ITextComponent
private final boolean
private final boolean
private final String
private static final org.apache.logging.log4j.Logger
private final IPackNameDecorator
private final boolean
private final Supplier<IResourcePack>
private final ITextComponent
-
Constructor Summary
ConstructorDescriptionResourcePackInfo
(String p_i231421_1_, boolean p_i231421_2_, Supplier<IResourcePack> p_i231421_3_, IResourcePack p_i231421_4_, PackMetadataSection p_i231421_5_, ResourcePackInfo.Priority p_i231421_6_, IPackNameDecorator p_i231421_7_) Deprecated.ResourcePackInfo
(String p_i231421_1_, boolean p_i231421_2_, Supplier<IResourcePack> p_i231421_3_, IResourcePack p_i231421_4_, PackMetadataSection p_i231421_5_, ResourcePackInfo.Priority p_i231421_6_, IPackNameDecorator p_i231421_7_, boolean hidden) ResourcePackInfo
(String p_i231422_1_, boolean p_i231422_2_, Supplier<IResourcePack> p_i231422_3_, ITextComponent p_i231422_4_, ITextComponent p_i231422_5_, PackCompatibility p_i231422_6_, ResourcePackInfo.Priority p_i231422_7_, boolean p_i231422_8_, IPackNameDecorator p_i231422_9_) Deprecated.ResourcePackInfo
(String p_i231422_1_, boolean p_i231422_2_, Supplier<IResourcePack> p_i231422_3_, ITextComponent p_i231422_4_, ITextComponent p_i231422_5_, PackCompatibility p_i231422_6_, ResourcePackInfo.Priority p_i231422_7_, boolean p_i231422_8_, IPackNameDecorator p_i231422_9_, boolean hidden) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static ResourcePackInfo
create
(String p_195793_0_, boolean p_195793_1_, Supplier<IResourcePack> p_195793_2_, ResourcePackInfo.IFactory p_195793_3_, ResourcePackInfo.Priority p_195793_4_, IPackNameDecorator p_195793_5_) boolean
getChatLink
(boolean p_195794_1_) getId()
getTitle()
int
hashCode()
boolean
boolean
isHidden()
boolean
open()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
BROKEN_ASSETS_FALLBACK
-
id
-
supplier
-
title
-
description
-
compatibility
-
defaultPosition
-
required
private final boolean required -
fixedPosition
private final boolean fixedPosition -
packSource
-
-
Constructor Details
-
ResourcePackInfo
@Deprecated public ResourcePackInfo(String p_i231422_1_, boolean p_i231422_2_, Supplier<IResourcePack> p_i231422_3_, ITextComponent p_i231422_4_, ITextComponent p_i231422_5_, PackCompatibility p_i231422_6_, ResourcePackInfo.Priority p_i231422_7_, boolean p_i231422_8_, IPackNameDecorator p_i231422_9_) Deprecated. -
ResourcePackInfo
public ResourcePackInfo(String p_i231422_1_, boolean p_i231422_2_, Supplier<IResourcePack> p_i231422_3_, ITextComponent p_i231422_4_, ITextComponent p_i231422_5_, PackCompatibility p_i231422_6_, ResourcePackInfo.Priority p_i231422_7_, boolean p_i231422_8_, IPackNameDecorator p_i231422_9_, boolean hidden) -
ResourcePackInfo
@Deprecated public ResourcePackInfo(String p_i231421_1_, boolean p_i231421_2_, Supplier<IResourcePack> p_i231421_3_, IResourcePack p_i231421_4_, PackMetadataSection p_i231421_5_, ResourcePackInfo.Priority p_i231421_6_, IPackNameDecorator p_i231421_7_) Deprecated. -
ResourcePackInfo
public ResourcePackInfo(String p_i231421_1_, boolean p_i231421_2_, Supplier<IResourcePack> p_i231421_3_, IResourcePack p_i231421_4_, PackMetadataSection p_i231421_5_, ResourcePackInfo.Priority p_i231421_6_, IPackNameDecorator p_i231421_7_, boolean hidden)
-
-
Method Details
-
create
@Nullable public static ResourcePackInfo create(String p_195793_0_, boolean p_195793_1_, Supplier<IResourcePack> p_195793_2_, ResourcePackInfo.IFactory p_195793_3_, ResourcePackInfo.Priority p_195793_4_, IPackNameDecorator p_195793_5_) -
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
-