public class ResourcePackInfo
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static interface |
ResourcePackInfo.IFactory<T extends ResourcePackInfo> |
static class |
ResourcePackInfo.Priority |
Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysEnabled |
private static PackMetadataSection |
BROKEN_ASSETS_FALLBACK |
private PackCompatibility |
compatibility |
private ITextComponent |
description |
private boolean |
hidden |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.String |
name |
private boolean |
orderLocked |
private ResourcePackInfo.Priority |
priority |
private java.util.function.Supplier<IResourcePack> |
resourcePackSupplier |
private ITextComponent |
title |
Constructor and Description |
---|
ResourcePackInfo(java.lang.String nameIn,
boolean isAlwaysEnabled,
java.util.function.Supplier<IResourcePack> resourcePackSupplierIn,
IResourcePack p_i47908_4_,
PackMetadataSection p_i47908_5_,
ResourcePackInfo.Priority priorityIn)
Deprecated.
|
ResourcePackInfo(java.lang.String nameIn,
boolean isAlwaysEnabled,
java.util.function.Supplier<IResourcePack> resourcePackSupplierIn,
IResourcePack p_i47908_4_,
PackMetadataSection p_i47908_5_,
ResourcePackInfo.Priority priorityIn,
boolean hidden) |
ResourcePackInfo(java.lang.String nameIn,
boolean isAlwaysEnabled,
java.util.function.Supplier<IResourcePack> resourcePackSupplierIn,
ITextComponent titleIn,
ITextComponent descriptionIn,
PackCompatibility compatibilityIn,
ResourcePackInfo.Priority priorityIn,
boolean isOrderLocked)
Deprecated.
|
ResourcePackInfo(java.lang.String nameIn,
boolean isAlwaysEnabled,
java.util.function.Supplier<IResourcePack> resourcePackSupplierIn,
ITextComponent titleIn,
ITextComponent descriptionIn,
PackCompatibility compatibilityIn,
ResourcePackInfo.Priority priorityIn,
boolean isOrderLocked,
boolean hidden) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static <T extends ResourcePackInfo> |
createResourcePack(java.lang.String nameIn,
boolean p_195793_1_,
java.util.function.Supplier<IResourcePack> p_195793_2_,
ResourcePackInfo.IFactory<T> factory,
ResourcePackInfo.Priority p_195793_4_) |
boolean |
equals(java.lang.Object p_equals_1_) |
ITextComponent |
getChatLink(boolean p_195794_1_) |
PackCompatibility |
getCompatibility() |
ITextComponent |
getDescription() |
java.lang.String |
getName() |
ResourcePackInfo.Priority |
getPriority() |
IResourcePack |
getResourcePack() |
ITextComponent |
getTitle() |
int |
hashCode() |
boolean |
isAlwaysEnabled() |
boolean |
isHidden() |
boolean |
isOrderLocked() |
private static final org.apache.logging.log4j.Logger LOGGER
private static final PackMetadataSection BROKEN_ASSETS_FALLBACK
private final java.lang.String name
private final java.util.function.Supplier<IResourcePack> resourcePackSupplier
private final ITextComponent title
private final ITextComponent description
private final PackCompatibility compatibility
private final ResourcePackInfo.Priority priority
private final boolean alwaysEnabled
private final boolean orderLocked
private final boolean hidden
@Deprecated public ResourcePackInfo(java.lang.String nameIn, boolean isAlwaysEnabled, java.util.function.Supplier<IResourcePack> resourcePackSupplierIn, ITextComponent titleIn, ITextComponent descriptionIn, PackCompatibility compatibilityIn, ResourcePackInfo.Priority priorityIn, boolean isOrderLocked)
public ResourcePackInfo(java.lang.String nameIn, boolean isAlwaysEnabled, java.util.function.Supplier<IResourcePack> resourcePackSupplierIn, ITextComponent titleIn, ITextComponent descriptionIn, PackCompatibility compatibilityIn, ResourcePackInfo.Priority priorityIn, boolean isOrderLocked, boolean hidden)
@Deprecated public ResourcePackInfo(java.lang.String nameIn, boolean isAlwaysEnabled, java.util.function.Supplier<IResourcePack> resourcePackSupplierIn, IResourcePack p_i47908_4_, PackMetadataSection p_i47908_5_, ResourcePackInfo.Priority priorityIn)
public ResourcePackInfo(java.lang.String nameIn, boolean isAlwaysEnabled, java.util.function.Supplier<IResourcePack> resourcePackSupplierIn, IResourcePack p_i47908_4_, PackMetadataSection p_i47908_5_, ResourcePackInfo.Priority priorityIn, boolean hidden)
@Nullable public static <T extends ResourcePackInfo> T createResourcePack(java.lang.String nameIn, boolean p_195793_1_, java.util.function.Supplier<IResourcePack> p_195793_2_, ResourcePackInfo.IFactory<T> factory, ResourcePackInfo.Priority p_195793_4_)
public ITextComponent getTitle()
public ITextComponent getDescription()
public ITextComponent getChatLink(boolean p_195794_1_)
public PackCompatibility getCompatibility()
public IResourcePack getResourcePack()
public java.lang.String getName()
public boolean isAlwaysEnabled()
public boolean isOrderLocked()
public ResourcePackInfo.Priority getPriority()
public boolean isHidden()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void close()
close
in interface java.lang.AutoCloseable