Package net.minecraft.client.resources
Class LegacyResourcePackWrapperV4
- java.lang.Object
-
- net.minecraft.client.resources.LegacyResourcePackWrapperV4
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IResourcePack
,IForgeResourcePack
public class LegacyResourcePackWrapperV4 extends java.lang.Object implements IResourcePack
-
-
Field Summary
Fields Modifier and Type Field 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 IResourcePack
pack
private static java.util.List<java.lang.String>
PATTERNS
static ResourceLocation
SHIELD_BASE
private static java.util.Set<java.lang.String>
SHIELDS
-
Constructor Summary
Constructors Constructor Description LegacyResourcePackWrapperV4(IResourcePack p_i226053_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private static void
copyRect(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
fixConduitEyeTexture(java.io.InputStream p_229285_0_)
static java.io.InputStream
fixLeftChest(java.io.InputStream p_229289_0_)
static java.io.InputStream
fixPattern(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
fixRightChest(java.io.InputStream p_229290_0_)
static java.io.InputStream
fixSingleChest(java.io.InputStream p_229292_0_)
<T> T
getMetadataSection(IMetadataSectionSerializer<T> p_195760_1_)
java.lang.String
getName()
java.util.Set<java.lang.String>
getNamespaces(ResourcePackType p_195759_1_)
java.io.InputStream
getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_)
java.util.Collection<ResourceLocation>
getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
java.io.InputStream
getRootResource(java.lang.String p_195763_1_)
boolean
hasResource(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeResourcePack
isHidden
-
-
-
-
Field Detail
-
CHESTS
private static final java.util.Map<java.lang.String,com.mojang.datafixers.util.Pair<ChestType,ResourceLocation>> CHESTS
-
PATTERNS
private static final java.util.List<java.lang.String> PATTERNS
-
SHIELDS
private static final java.util.Set<java.lang.String> SHIELDS
-
BANNERS
private static final java.util.Set<java.lang.String> BANNERS
-
SHIELD_BASE
public static final ResourceLocation SHIELD_BASE
-
BANNER_BASE
public static final ResourceLocation BANNER_BASE
-
OLD_IRON_GOLEM_LOCATION
public static final ResourceLocation OLD_IRON_GOLEM_LOCATION
-
pack
private final IResourcePack pack
-
-
Constructor Detail
-
LegacyResourcePackWrapperV4
public LegacyResourcePackWrapperV4(IResourcePack p_i226053_1_)
-
-
Method Detail
-
getRootResource
public java.io.InputStream getRootResource(java.lang.String p_195763_1_) throws java.io.IOException
- Specified by:
getRootResource
in interfaceIResourcePack
- Throws:
java.io.IOException
-
hasResource
public boolean hasResource(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_)
- Specified by:
hasResource
in interfaceIResourcePack
-
getResource
public java.io.InputStream getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) throws java.io.IOException
- Specified by:
getResource
in interfaceIResourcePack
- Throws:
java.io.IOException
-
fixPattern
@Nullable public static java.io.InputStream fixPattern(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
- Throws:
java.io.IOException
-
fixConduitEyeTexture
public static java.io.InputStream fixConduitEyeTexture(java.io.InputStream p_229285_0_) throws java.io.IOException
- Throws:
java.io.IOException
-
fixLeftChest
public static java.io.InputStream fixLeftChest(java.io.InputStream p_229289_0_) throws java.io.IOException
- Throws:
java.io.IOException
-
fixRightChest
public static java.io.InputStream fixRightChest(java.io.InputStream p_229290_0_) throws java.io.IOException
- Throws:
java.io.IOException
-
fixSingleChest
public static java.io.InputStream fixSingleChest(java.io.InputStream p_229292_0_) throws java.io.IOException
- Throws:
java.io.IOException
-
getResources
public java.util.Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
- Specified by:
getResources
in interfaceIResourcePack
-
getNamespaces
public java.util.Set<java.lang.String> getNamespaces(ResourcePackType p_195759_1_)
- Specified by:
getNamespaces
in interfaceIResourcePack
-
getMetadataSection
@Nullable public <T> T getMetadataSection(IMetadataSectionSerializer<T> p_195760_1_) throws java.io.IOException
- Specified by:
getMetadataSection
in interfaceIResourcePack
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIResourcePack
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceIResourcePack
-
copyRect
private static void copyRect(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_)
-
-