Package net.minecraft.client.resources
Class PackResourcesAdapterV4
java.lang.Object
net.minecraft.client.resources.PackResourcesAdapterV4
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IForgePackResources
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResourceLocation
private static final Map<String,
com.mojang.datafixers.util.Pair<ChestType, ResourceLocation>> static final int
static final int
static final int
static final String
static final ResourceLocation
private final PackResources
static final ResourceLocation
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static void
copyRect
(NativeImage p_118760_, NativeImage p_118761_, int p_118762_, int p_118763_, int p_118764_, int p_118765_, int p_118766_, int p_118767_, int p_118768_, boolean p_118769_, boolean p_118770_) static InputStream
fixConduitEyeTexture
(InputStream p_118772_) static InputStream
fixLeftChest
(InputStream p_118789_) static InputStream
fixPattern
(InputStream p_118774_, InputStream p_118775_, int p_118776_, int p_118777_, int p_118778_, int p_118779_, int p_118780_) static InputStream
fixRightChest
(InputStream p_118793_) static InputStream
fixSingleChest
(InputStream p_118798_) <T> T
getMetadataSection
(MetadataSectionSerializer<T> p_118758_) getName()
getNamespaces
(PackType p_118747_) getResource
(PackType p_118755_, ResourceLocation p_118756_) getResources
(PackType p_118749_, String p_118750_, String p_118751_, int p_118752_, Predicate<String> p_118753_) getRootResource
(String p_118791_) boolean
hasResource
(PackType p_118786_, ResourceLocation p_118787_) 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.IForgePackResources
isHidden
-
Field Details
-
CHESTS
-
PATTERNS
-
SHIELDS
-
BANNERS
-
SHIELD_BASE
-
BANNER_BASE
-
DEFAULT_CHEST_SIZE
public static final int DEFAULT_CHEST_SIZE- See Also:
-
DEFAULT_SHIELD_SIZE
public static final int DEFAULT_SHIELD_SIZE- See Also:
-
DEFAULT_BANNER_SIZE
public static final int DEFAULT_BANNER_SIZE- See Also:
-
OLD_IRON_GOLEM_LOCATION
-
NEW_IRON_GOLEM_PATH
- See Also:
-
pack
-
-
Constructor Details
-
PackResourcesAdapterV4
-
-
Method Details
-
getRootResource
- Specified by:
getRootResource
in interfacePackResources
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfacePackResources
-
getResource
- Specified by:
getResource
in interfacePackResources
- Throws:
IOException
-
fixPattern
@Nullable public static InputStream fixPattern(InputStream p_118774_, InputStream p_118775_, int p_118776_, int p_118777_, int p_118778_, int p_118779_, int p_118780_) throws IOException - Throws:
IOException
-
fixConduitEyeTexture
- Throws:
IOException
-
fixLeftChest
- Throws:
IOException
-
fixRightChest
- Throws:
IOException
-
fixSingleChest
- Throws:
IOException
-
getResources
public Collection<ResourceLocation> getResources(PackType p_118749_, String p_118750_, String p_118751_, int p_118752_, Predicate<String> p_118753_) - Specified by:
getResources
in interfacePackResources
-
getNamespaces
- Specified by:
getNamespaces
in interfacePackResources
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> p_118758_) throws IOException - Specified by:
getMetadataSection
in interfacePackResources
- Throws:
IOException
-
getName
- Specified by:
getName
in interfacePackResources
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePackResources
-
copyRect
private static void copyRect(NativeImage p_118760_, NativeImage p_118761_, int p_118762_, int p_118763_, int p_118764_, int p_118765_, int p_118766_, int p_118767_, int p_118768_, boolean p_118769_, boolean p_118770_)
-