Package net.minecraft.resources
Class ResourcePackInfo
- java.lang.Object
-
- net.minecraft.resources.ResourcePackInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ResourcePackInfo extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResourcePackInfo.IFactory
static class
ResourcePackInfo.Priority
-
Field Summary
Fields Modifier and Type Field Description private static PackMetadataSection
BROKEN_ASSETS_FALLBACK
private PackCompatibility
compatibility
private ResourcePackInfo.Priority
defaultPosition
private ITextComponent
description
private boolean
fixedPosition
private boolean
hidden
private java.lang.String
id
private static org.apache.logging.log4j.Logger
LOGGER
private IPackNameDecorator
packSource
private boolean
required
private java.util.function.Supplier<IResourcePack>
supplier
private ITextComponent
title
-
Constructor Summary
Constructors Constructor Description ResourcePackInfo(java.lang.String p_i231421_1_, boolean p_i231421_2_, java.util.function.Supplier<IResourcePack> p_i231421_3_, IResourcePack p_i231421_4_, PackMetadataSection p_i231421_5_, ResourcePackInfo.Priority p_i231421_6_, IPackNameDecorator p_i231421_7_)
Deprecated.ResourcePackInfo(java.lang.String p_i231421_1_, boolean p_i231421_2_, java.util.function.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(java.lang.String p_i231422_1_, boolean p_i231422_2_, java.util.function.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(java.lang.String p_i231422_1_, boolean p_i231422_2_, java.util.function.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static ResourcePackInfo
create(java.lang.String p_195793_0_, boolean p_195793_1_, java.util.function.Supplier<IResourcePack> p_195793_2_, ResourcePackInfo.IFactory p_195793_3_, ResourcePackInfo.Priority p_195793_4_, IPackNameDecorator p_195793_5_)
boolean
equals(java.lang.Object p_equals_1_)
ITextComponent
getChatLink(boolean p_195794_1_)
PackCompatibility
getCompatibility()
ResourcePackInfo.Priority
getDefaultPosition()
ITextComponent
getDescription()
java.lang.String
getId()
IPackNameDecorator
getPackSource()
ITextComponent
getTitle()
int
hashCode()
boolean
isFixedPosition()
boolean
isHidden()
boolean
isRequired()
IResourcePack
open()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
BROKEN_ASSETS_FALLBACK
private static final PackMetadataSection BROKEN_ASSETS_FALLBACK
-
id
private final java.lang.String id
-
supplier
private final java.util.function.Supplier<IResourcePack> supplier
-
title
private final ITextComponent title
-
description
private final ITextComponent description
-
compatibility
private final PackCompatibility compatibility
-
defaultPosition
private final ResourcePackInfo.Priority defaultPosition
-
required
private final boolean required
-
fixedPosition
private final boolean fixedPosition
-
hidden
private final boolean hidden
-
packSource
private final IPackNameDecorator packSource
-
-
Constructor Detail
-
ResourcePackInfo
@Deprecated public ResourcePackInfo(java.lang.String p_i231422_1_, boolean p_i231422_2_, java.util.function.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(java.lang.String p_i231422_1_, boolean p_i231422_2_, java.util.function.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(java.lang.String p_i231421_1_, boolean p_i231421_2_, java.util.function.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(java.lang.String p_i231421_1_, boolean p_i231421_2_, java.util.function.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 Detail
-
create
@Nullable public static ResourcePackInfo create(java.lang.String p_195793_0_, boolean p_195793_1_, java.util.function.Supplier<IResourcePack> p_195793_2_, ResourcePackInfo.IFactory p_195793_3_, ResourcePackInfo.Priority p_195793_4_, IPackNameDecorator p_195793_5_)
-
getTitle
public ITextComponent getTitle()
-
getDescription
public ITextComponent getDescription()
-
getChatLink
public ITextComponent getChatLink(boolean p_195794_1_)
-
getCompatibility
public PackCompatibility getCompatibility()
-
open
public IResourcePack open()
-
getId
public java.lang.String getId()
-
isRequired
public boolean isRequired()
-
isFixedPosition
public boolean isFixedPosition()
-
getDefaultPosition
public ResourcePackInfo.Priority getDefaultPosition()
-
getPackSource
public IPackNameDecorator getPackSource()
-
isHidden
public boolean isHidden()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-