Package net.minecraft.client.resources
Class LegacyResourcePackWrapperV4
java.lang.Object
net.minecraft.client.resources.LegacyResourcePackWrapperV4
- All Implemented Interfaces:
AutoCloseable
,IResourcePack
,IForgeResourcePack
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResourceLocation
private static final Map<String,
com.mojang.datafixers.util.Pair<ChestType, ResourceLocation>> static final ResourceLocation
private final IResourcePack
static final ResourceLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 InputStream
fixConduitEyeTexture
(InputStream p_229285_0_) static InputStream
fixLeftChest
(InputStream p_229289_0_) static InputStream
fixPattern
(InputStream p_229286_0_, 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 InputStream
fixRightChest
(InputStream p_229290_0_) static InputStream
fixSingleChest
(InputStream p_229292_0_) <T> T
getMetadataSection
(IMetadataSectionSerializer<T> p_195760_1_) getName()
getNamespaces
(ResourcePackType p_195759_1_) getResource
(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) getResources
(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) getRootResource
(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 Details
-
CHESTS
-
PATTERNS
-
SHIELDS
-
BANNERS
-
SHIELD_BASE
-
BANNER_BASE
-
OLD_IRON_GOLEM_LOCATION
-
pack
-
-
Constructor Details
-
LegacyResourcePackWrapperV4
-
-
Method Details
-
getRootResource
- Specified by:
getRootResource
in interfaceIResourcePack
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceIResourcePack
-
getResource
public InputStream getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) throws IOException - Specified by:
getResource
in interfaceIResourcePack
- Throws:
IOException
-
fixPattern
@Nullable public static InputStream fixPattern(InputStream p_229286_0_, 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 IOException - Throws:
IOException
-
fixConduitEyeTexture
- Throws:
IOException
-
fixLeftChest
- Throws:
IOException
-
fixRightChest
- Throws:
IOException
-
fixSingleChest
- Throws:
IOException
-
getResources
public Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) - Specified by:
getResources
in interfaceIResourcePack
-
getNamespaces
- Specified by:
getNamespaces
in interfaceIResourcePack
-
getMetadataSection
@Nullable public <T> T getMetadataSection(IMetadataSectionSerializer<T> p_195760_1_) throws IOException - Specified by:
getMetadataSection
in interfaceIResourcePack
- Throws:
IOException
-
getName
- Specified by:
getName
in interfaceIResourcePack
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- 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_)
-