Package net.minecraft.client.resources
Class PackResourcesAdapterV4
java.lang.Object
net.minecraft.client.resources.PackResourcesAdapterV4
- All Implemented Interfaces:
AutoCloseable,PackResources,IForgePackResources
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ResourceLocationprivate static Map<String,com.mojang.datafixers.util.Pair<ChestType,ResourceLocation>>static intstatic intstatic intstatic Stringstatic ResourceLocationprivate PackResourcesstatic ResourceLocationFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private static voidcopyRect(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 InputStreamfixConduitEyeTexture(InputStream p_118772_)static InputStreamfixLeftChest(InputStream p_118789_)static InputStreamfixPattern(InputStream p_118774_, InputStream p_118775_, int p_118776_, int p_118777_, int p_118778_, int p_118779_, int p_118780_)static InputStreamfixRightChest(InputStream p_118793_)static InputStreamfixSingleChest(InputStream p_118798_)<T> TgetMetadataSection(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_)booleanhasResource(PackType p_118786_, ResourceLocation p_118787_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
isHidden
-
Field Details
-
CHESTS
private static final Map<String,com.mojang.datafixers.util.Pair<ChestType,ResourceLocation>> CHESTS -
PATTERNS
-
SHIELDS
-
BANNERS
-
SHIELD_BASE
-
BANNER_BASE
-
DEFAULT_CHEST_SIZE
public static final int DEFAULT_CHEST_SIZE- See Also:
- Constant Field Values
-
DEFAULT_SHIELD_SIZE
public static final int DEFAULT_SHIELD_SIZE- See Also:
- Constant Field Values
-
DEFAULT_BANNER_SIZE
public static final int DEFAULT_BANNER_SIZE- See Also:
- Constant Field Values
-
OLD_IRON_GOLEM_LOCATION
-
NEW_IRON_GOLEM_PATH
- See Also:
- Constant Field Values
-
pack
-
-
Constructor Details
-
PackResourcesAdapterV4
-
-
Method Details
-
getRootResource
- Specified by:
getRootResourcein interfacePackResources- Throws:
IOException
-
hasResource
- Specified by:
hasResourcein interfacePackResources
-
getResource
- Specified by:
getResourcein 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:
getResourcesin interfacePackResources
-
getNamespaces
- Specified by:
getNamespacesin interfacePackResources
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> p_118758_) throws IOException- Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
getName
- Specified by:
getNamein interfacePackResources
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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_)
-