Package net.minecraft.client.resource
Class Format4ResourcePack
java.lang.Object
net.minecraft.client.resource.Format4ResourcePack
- All Implemented Interfaces:
AutoCloseable,ResourcePack
- Mappings:
Namespace Name official exzintermediary net/minecraft/class_4729named net/minecraft/client/resource/Format4ResourcePack
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic Identifierstatic Stringprivate static Map<String,com.mojang.datafixers.util.Pair<ChestType,Identifier>>static Identifierstatic Identifierprivate ResourcePackFields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleancontains(ResourceType type, Identifier id)static InputStreamcropLeftChestTexture(InputStream inputStream)static InputStreamcropRightChestTexture(InputStream inputStream)static InputStreamcropSingleChestTexture(InputStream inputStream)findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)getName()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)open(ResourceType type, Identifier id)static @Nullable InputStreamopenCroppedStream(InputStream inputStream, InputStream inputStream2, int int2, int int3, int int4, int int5, int int6)<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- Mappings:
Namespace Name Mixin selector official jLexz;j:Ljava/util/Map;intermediary field_21762Lnet/minecraft/class_4729;field_21762:Ljava/util/Map;named NEW_TO_OLD_CHEST_TEXTURESLnet/minecraft/client/resource/Format4ResourcePack;NEW_TO_OLD_CHEST_TEXTURES:Ljava/util/Map;
-
BANNER_PATTERN_TYPES
- Mappings:
Namespace Name Mixin selector official kLexz;k:Ljava/util/List;intermediary field_21763Lnet/minecraft/class_4729;field_21763:Ljava/util/List;named BANNER_PATTERN_TYPESLnet/minecraft/client/resource/Format4ResourcePack;BANNER_PATTERN_TYPES:Ljava/util/List;
-
SHIELD_PATTERN_TEXTURES
- Mappings:
Namespace Name Mixin selector official lLexz;l:Ljava/util/Set;intermediary field_21764Lnet/minecraft/class_4729;field_21764:Ljava/util/Set;named SHIELD_PATTERN_TEXTURESLnet/minecraft/client/resource/Format4ResourcePack;SHIELD_PATTERN_TEXTURES:Ljava/util/Set;
-
BANNER_PATTERN_TEXTURES
- Mappings:
Namespace Name Mixin selector official mLexz;m:Ljava/util/Set;intermediary field_21765Lnet/minecraft/class_4729;field_21765:Ljava/util/Set;named BANNER_PATTERN_TEXTURESLnet/minecraft/client/resource/Format4ResourcePack;BANNER_PATTERN_TEXTURES:Ljava/util/Set;
-
OLD_SHIELD_BASE_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLexz;a:Lww;intermediary field_21759Lnet/minecraft/class_4729;field_21759:Lnet/minecraft/class_2960;named OLD_SHIELD_BASE_TEXTURELnet/minecraft/client/resource/Format4ResourcePack;OLD_SHIELD_BASE_TEXTURE:Lnet/minecraft/util/Identifier;
-
OLD_BANNER_BASE_TEXTURE
- Mappings:
Namespace Name Mixin selector official bLexz;b:Lww;intermediary field_21760Lnet/minecraft/class_4729;field_21760:Lnet/minecraft/class_2960;named OLD_BANNER_BASE_TEXTURELnet/minecraft/client/resource/Format4ResourcePack;OLD_BANNER_BASE_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32966
public static final int field_32966- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official eLexz;e:Iintermediary field_32966Lnet/minecraft/class_4729;field_32966:Inamed field_32966Lnet/minecraft/client/resource/Format4ResourcePack;field_32966:I
-
field_32967
public static final int field_32967- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official fLexz;f:Iintermediary field_32967Lnet/minecraft/class_4729;field_32967:Inamed field_32967Lnet/minecraft/client/resource/Format4ResourcePack;field_32967:I
-
field_32968
public static final int field_32968- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official gLexz;g:Iintermediary field_32968Lnet/minecraft/class_4729;field_32968:Inamed field_32968Lnet/minecraft/client/resource/Format4ResourcePack;field_32968:I
-
IRON_GOLEM_TEXTURE
- Mappings:
Namespace Name Mixin selector official hLexz;h:Lww;intermediary field_21761Lnet/minecraft/class_4729;field_21761:Lnet/minecraft/class_2960;named IRON_GOLEM_TEXTURELnet/minecraft/client/resource/Format4ResourcePack;IRON_GOLEM_TEXTURE:Lnet/minecraft/util/Identifier;
-
IRON_GOLEM_TEXTURE_PATH
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official iLexz;i:Ljava/lang/String;intermediary field_32969Lnet/minecraft/class_4729;field_32969:Ljava/lang/String;named IRON_GOLEM_TEXTURE_PATHLnet/minecraft/client/resource/Format4ResourcePack;IRON_GOLEM_TEXTURE_PATH:Ljava/lang/String;
-
parent
- Mappings:
Namespace Name Mixin selector official nLexz;n:Lacv;intermediary field_21766Lnet/minecraft/class_4729;field_21766:Lnet/minecraft/class_3262;named parentLnet/minecraft/client/resource/Format4ResourcePack;parent:Lnet/minecraft/resource/ResourcePack;
-
-
Constructor Details
-
Format4ResourcePack
- Mappings:
Namespace Name Mixin selector official <init>Lexz;<init>(Lacv;)Vintermediary <init>Lnet/minecraft/class_4729;<init>(Lnet/minecraft/class_3262;)Vnamed <init>Lnet/minecraft/client/resource/Format4ResourcePack;<init>(Lnet/minecraft/resource/ResourcePack;)V
-
-
Method Details
-
openRoot
- Specified by:
openRootin interfaceResourcePack- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLacv;b(Ljava/lang/String;)Ljava/io/InputStream;intermediary method_14410Lnet/minecraft/class_3262;method_14410(Ljava/lang/String;)Ljava/io/InputStream;named openRootLnet/minecraft/resource/ResourcePack;openRoot(Ljava/lang/String;)Ljava/io/InputStream;
-
contains
- Specified by:
containsin interfaceResourcePack- Mappings:
Namespace Name Mixin selector official bLacv;b(Lacw;Lww;)Zintermediary method_14411Lnet/minecraft/class_3262;method_14411(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Znamed containsLnet/minecraft/resource/ResourcePack;contains(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Z
-
open
- Specified by:
openin interfaceResourcePack- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLacv;a(Lacw;Lww;)Ljava/io/InputStream;intermediary method_14405Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/io/InputStream;named openLnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
-
openCroppedStream
@Nullable public static @Nullable InputStream openCroppedStream(InputStream inputStream, InputStream inputStream2, int int2, int int3, int int4, int int5, int int6) throws IOException- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLexz;a(Ljava/io/InputStream;Ljava/io/InputStream;IIIII)Ljava/io/InputStream;intermediary method_24134Lnet/minecraft/class_4729;method_24134(Ljava/io/InputStream;Ljava/io/InputStream;IIIII)Ljava/io/InputStream;named openCroppedStreamLnet/minecraft/client/resource/Format4ResourcePack;openCroppedStream(Ljava/io/InputStream;Ljava/io/InputStream;IIIII)Ljava/io/InputStream;
-
method_24199
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLexz;a(Ljava/io/InputStream;)Ljava/io/InputStream;intermediary method_24199Lnet/minecraft/class_4729;method_24199(Ljava/io/InputStream;)Ljava/io/InputStream;named method_24199Lnet/minecraft/client/resource/Format4ResourcePack;method_24199(Ljava/io/InputStream;)Ljava/io/InputStream;
-
cropLeftChestTexture
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLexz;b(Ljava/io/InputStream;)Ljava/io/InputStream;intermediary method_24133Lnet/minecraft/class_4729;method_24133(Ljava/io/InputStream;)Ljava/io/InputStream;named cropLeftChestTextureLnet/minecraft/client/resource/Format4ResourcePack;cropLeftChestTexture(Ljava/io/InputStream;)Ljava/io/InputStream;
-
cropRightChestTexture
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official cLexz;c(Ljava/io/InputStream;)Ljava/io/InputStream;intermediary method_24137Lnet/minecraft/class_4729;method_24137(Ljava/io/InputStream;)Ljava/io/InputStream;named cropRightChestTextureLnet/minecraft/client/resource/Format4ResourcePack;cropRightChestTexture(Ljava/io/InputStream;)Ljava/io/InputStream;
-
cropSingleChestTexture
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official dLexz;d(Ljava/io/InputStream;)Ljava/io/InputStream;intermediary method_24138Lnet/minecraft/class_4729;method_24138(Ljava/io/InputStream;)Ljava/io/InputStream;named cropSingleChestTextureLnet/minecraft/client/resource/Format4ResourcePack;cropSingleChestTexture(Ljava/io/InputStream;)Ljava/io/InputStream;
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)- Specified by:
findResourcesin interfaceResourcePack- Mappings:
Namespace Name Mixin selector official aLacv;a(Lacw;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;intermediary method_14408Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;named findResourcesLnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
-
getNamespaces
- Specified by:
getNamespacesin interfaceResourcePack- Mappings:
Namespace Name Mixin selector official aLacv;a(Lacw;)Ljava/util/Set;intermediary method_14406Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;named getNamespacesLnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
-
parseMetadata
- Specified by:
parseMetadatain interfaceResourcePack- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLacv;a(Lacz;)Ljava/lang/Object;intermediary method_14407Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;named parseMetadataLnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
-
getName
- Specified by:
getNamein interfaceResourcePack- Mappings:
Namespace Name Mixin selector official aLacv;a()Ljava/lang/String;intermediary method_14409Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;named getNameLnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;
-
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)- Mappings:
Namespace Name Mixin selector official aLexz;a(Ldpl;Ldpl;IIIIIIIZZ)Vintermediary method_24132Lnet/minecraft/class_4729;method_24132(Lnet/minecraft/class_1011;Lnet/minecraft/class_1011;IIIIIIIZZ)Vnamed loadBytesLnet/minecraft/client/resource/Format4ResourcePack;loadBytes(Lnet/minecraft/client/texture/NativeImage;Lnet/minecraft/client/texture/NativeImage;IIIIIIIZZ)V
-