public class LegacyResourcePackWrapperV4 extends java.lang.Object implements IResourcePack
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
BANNER_BASE |
private static java.util.Set<java.lang.String> |
BANNERS |
private static java.util.Map<java.lang.String,com.mojang.datafixers.util.Pair<ChestType,ResourceLocation>> |
CHESTS |
static ResourceLocation |
OLD_IRON_GOLEM_LOCATION |
private static java.util.List<java.lang.String> |
PATTERNS |
private IResourcePack |
resourcePack |
static ResourceLocation |
SHIELD_BASE |
private static java.util.Set<java.lang.String> |
SHIELDS |
Constructor and Description |
---|
LegacyResourcePackWrapperV4(IResourcePack p_i226053_1_) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private static void |
func_229284_a_(NativeImage p_229284_0_,
NativeImage p_229284_1_,
int p_229284_2_,
int p_229284_3_,
int p_229284_4_,
int p_229284_5_,
int p_229284_6_,
int p_229284_7_,
int p_229284_8_,
boolean p_229284_9_,
boolean p_229284_10_) |
static java.io.InputStream |
func_229285_a_(java.io.InputStream p_229285_0_) |
static java.io.InputStream |
func_229286_a_(java.io.InputStream p_229286_0_,
java.io.InputStream p_229286_1_,
int p_229286_2_,
int p_229286_3_,
int p_229286_4_,
int p_229286_5_,
int p_229286_6_) |
static java.io.InputStream |
func_229289_b_(java.io.InputStream p_229289_0_) |
static java.io.InputStream |
func_229290_c_(java.io.InputStream p_229290_0_) |
static java.io.InputStream |
func_229292_d_(java.io.InputStream p_229292_0_) |
java.util.Collection<ResourceLocation> |
getAllResourceLocations(ResourcePackType type,
java.lang.String namespaceIn,
java.lang.String pathIn,
int maxDepthIn,
java.util.function.Predicate<java.lang.String> filterIn) |
<T> T |
getMetadata(IMetadataSectionSerializer<T> deserializer) |
java.lang.String |
getName() |
java.util.Set<java.lang.String> |
getResourceNamespaces(ResourcePackType type) |
java.io.InputStream |
getResourceStream(ResourcePackType type,
ResourceLocation location) |
java.io.InputStream |
getRootResourceStream(java.lang.String fileName) |
boolean |
resourceExists(ResourcePackType type,
ResourceLocation location) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHidden
private static final java.util.Map<java.lang.String,com.mojang.datafixers.util.Pair<ChestType,ResourceLocation>> CHESTS
private static final java.util.List<java.lang.String> PATTERNS
private static final java.util.Set<java.lang.String> SHIELDS
private static final java.util.Set<java.lang.String> BANNERS
public static final ResourceLocation SHIELD_BASE
public static final ResourceLocation BANNER_BASE
public static final ResourceLocation OLD_IRON_GOLEM_LOCATION
private final IResourcePack resourcePack
public LegacyResourcePackWrapperV4(IResourcePack p_i226053_1_)
public java.io.InputStream getRootResourceStream(java.lang.String fileName) throws java.io.IOException
getRootResourceStream
in interface IResourcePack
java.io.IOException
public boolean resourceExists(ResourcePackType type, ResourceLocation location)
resourceExists
in interface IResourcePack
public java.io.InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws java.io.IOException
getResourceStream
in interface IResourcePack
java.io.IOException
@Nullable public static java.io.InputStream func_229286_a_(java.io.InputStream p_229286_0_, java.io.InputStream p_229286_1_, int p_229286_2_, int p_229286_3_, int p_229286_4_, int p_229286_5_, int p_229286_6_) throws java.io.IOException
java.io.IOException
public static java.io.InputStream func_229285_a_(java.io.InputStream p_229285_0_) throws java.io.IOException
java.io.IOException
public static java.io.InputStream func_229289_b_(java.io.InputStream p_229289_0_) throws java.io.IOException
java.io.IOException
public static java.io.InputStream func_229290_c_(java.io.InputStream p_229290_0_) throws java.io.IOException
java.io.IOException
public static java.io.InputStream func_229292_d_(java.io.InputStream p_229292_0_) throws java.io.IOException
java.io.IOException
public java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String namespaceIn, java.lang.String pathIn, int maxDepthIn, java.util.function.Predicate<java.lang.String> filterIn)
getAllResourceLocations
in interface IResourcePack
public java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
getResourceNamespaces
in interface IResourcePack
@Nullable public <T> T getMetadata(IMetadataSectionSerializer<T> deserializer) throws java.io.IOException
getMetadata
in interface IResourcePack
java.io.IOException
public java.lang.String getName()
getName
in interface IResourcePack
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
private static void func_229284_a_(NativeImage p_229284_0_, NativeImage p_229284_1_, int p_229284_2_, int p_229284_3_, int p_229284_4_, int p_229284_5_, int p_229284_6_, int p_229284_7_, int p_229284_8_, boolean p_229284_9_, boolean p_229284_10_)