Package net.minecraft.client.resource
Class Format4ResourcePack
java.lang.Object
net.minecraft.client.resource.Format4ResourcePack
- All Implemented Interfaces:
AutoCloseable,ResourcePack
@Environment(CLIENT) public class Format4ResourcePack extends Object implements ResourcePack
-
Field Summary
Fields Modifier and Type Field Description private static Set<String>BANNER_PATTERN_TEXTURESprivate static List<String>BANNER_PATTERN_TYPESstatic IdentifierIRON_GOLEM_TEXTUREprivate static Map<String,com.mojang.datafixers.util.Pair<ChestType,Identifier>>NEW_TO_OLD_CHEST_TEXTURESstatic IdentifierOLD_BANNER_BASE_TEXTUREstatic IdentifierOLD_SHIELD_BASE_TEXTUREprivate ResourcePackparentprivate static Set<String>SHIELD_PATTERN_TEXTURES -
Constructor Summary
Constructors Constructor Description Format4ResourcePack(ResourcePack parent) -
Method Summary
Modifier and Type Method Description voidclose()booleancontains(ResourceType type, Identifier id)static InputStreamcropLeftChestTexture(InputStream inputStream)static InputStreamcropRightChestTexture(InputStream inputStream)static InputStreamcropSingleChestTexture(InputStream inputStream)Collection<Identifier>findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)StringgetName()Set<String>getNamespaces(ResourceType type)private static voidloadBytes(NativeImage source, NativeImage target, int int2, int int3, int int4, int int5, int int6, int int7, int int8, boolean bool, boolean bool2)static InputStreammethod_24199(InputStream inputStream)InputStreamopen(ResourceType type, Identifier id)static InputStreamopenCroppedStream(InputStream inputStream, InputStream inputStream2, int int2, int int3, int int4, int int5, int int6)InputStreamopenRoot(String fileName)<T> TparseMetadata(ResourceMetadataReader<T> metaReader)
-
Field Details
-
NEW_TO_OLD_CHEST_TEXTURES
private static final Map<String,com.mojang.datafixers.util.Pair<ChestType,Identifier>> NEW_TO_OLD_CHEST_TEXTURES -
BANNER_PATTERN_TYPES
-
SHIELD_PATTERN_TEXTURES
-
BANNER_PATTERN_TEXTURES
-
OLD_SHIELD_BASE_TEXTURE
-
OLD_BANNER_BASE_TEXTURE
-
IRON_GOLEM_TEXTURE
-
parent
-
-
Constructor Details
-
Format4ResourcePack
-
-
Method Details
-
openRoot
- Specified by:
openRootin interfaceResourcePack- Throws:
IOException
-
contains
- Specified by:
containsin interfaceResourcePack
-
open
- Specified by:
openin interfaceResourcePack- Throws:
IOException
-
openCroppedStream
@Nullable public static InputStream openCroppedStream(InputStream inputStream, InputStream inputStream2, int int2, int int3, int int4, int int5, int int6) throws IOException- Throws:
IOException
-
method_24199
- Throws:
IOException
-
cropLeftChestTexture
- Throws:
IOException
-
cropRightChestTexture
- Throws:
IOException
-
cropSingleChestTexture
- Throws:
IOException
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)- Specified by:
findResourcesin interfaceResourcePack
-
getNamespaces
- Specified by:
getNamespacesin interfaceResourcePack
-
parseMetadata
- Specified by:
parseMetadatain interfaceResourcePack
-
getName
- Specified by:
getNamein interfaceResourcePack
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResourcePack
-
loadBytes
private static void loadBytes(NativeImage source, NativeImage target, int int2, int int3, int int4, int int5, int int6, int int7, int int8, boolean bool, boolean bool2)
-