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
- Mappings:
Namespace Name official ewp
intermediary net/minecraft/class_4729
named net/minecraft/client/resource/Format4ResourcePack
-
Field Summary
Fields Modifier and Type Field Description private static Set<String>
BANNER_PATTERN_TEXTURES
private static List<String>
BANNER_PATTERN_TYPES
static int
field_32966
static int
field_32967
static int
field_32968
static String
field_32969
static Identifier
IRON_GOLEM_TEXTURE
private static Map<String,com.mojang.datafixers.util.Pair<ChestType,Identifier>>
NEW_TO_OLD_CHEST_TEXTURES
static Identifier
OLD_BANNER_BASE_TEXTURE
static Identifier
OLD_SHIELD_BASE_TEXTURE
private ResourcePack
parent
private static Set<String>
SHIELD_PATTERN_TEXTURES
Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
Constructors Constructor Description Format4ResourcePack(ResourcePack parent)
-
Method Summary
Modifier and Type Method Description void
close()
boolean
contains(ResourceType type, Identifier id)
static InputStream
cropLeftChestTexture(InputStream inputStream)
static InputStream
cropRightChestTexture(InputStream inputStream)
static InputStream
cropSingleChestTexture(InputStream inputStream)
Collection<Identifier>
findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
String
getName()
Set<String>
getNamespaces(ResourceType type)
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)
static InputStream
method_24199(InputStream inputStream)
InputStream
open(ResourceType type, Identifier id)
static @Nullable InputStream
openCroppedStream(InputStream inputStream, InputStream inputStream2, int int2, int int3, int int4, int int5, int int6)
InputStream
openRoot(String fileName)
<T> T
parseMetadata(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 j
Lewp;j:Ljava/util/Map;
intermediary field_21762
Lnet/minecraft/class_4729;field_21762:Ljava/util/Map;
named NEW_TO_OLD_CHEST_TEXTURES
Lnet/minecraft/client/resource/Format4ResourcePack;NEW_TO_OLD_CHEST_TEXTURES:Ljava/util/Map;
-
BANNER_PATTERN_TYPES
- Mappings:
Namespace Name Mixin selector official k
Lewp;k:Ljava/util/List;
intermediary field_21763
Lnet/minecraft/class_4729;field_21763:Ljava/util/List;
named BANNER_PATTERN_TYPES
Lnet/minecraft/client/resource/Format4ResourcePack;BANNER_PATTERN_TYPES:Ljava/util/List;
-
SHIELD_PATTERN_TEXTURES
- Mappings:
Namespace Name Mixin selector official l
Lewp;l:Ljava/util/Set;
intermediary field_21764
Lnet/minecraft/class_4729;field_21764:Ljava/util/Set;
named SHIELD_PATTERN_TEXTURES
Lnet/minecraft/client/resource/Format4ResourcePack;SHIELD_PATTERN_TEXTURES:Ljava/util/Set;
-
BANNER_PATTERN_TEXTURES
- Mappings:
Namespace Name Mixin selector official m
Lewp;m:Ljava/util/Set;
intermediary field_21765
Lnet/minecraft/class_4729;field_21765:Ljava/util/Set;
named BANNER_PATTERN_TEXTURES
Lnet/minecraft/client/resource/Format4ResourcePack;BANNER_PATTERN_TEXTURES:Ljava/util/Set;
-
OLD_SHIELD_BASE_TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Lewp;a:Lwp;
intermediary field_21759
Lnet/minecraft/class_4729;field_21759:Lnet/minecraft/class_2960;
named OLD_SHIELD_BASE_TEXTURE
Lnet/minecraft/client/resource/Format4ResourcePack;OLD_SHIELD_BASE_TEXTURE:Lnet/minecraft/util/Identifier;
-
OLD_BANNER_BASE_TEXTURE
- Mappings:
Namespace Name Mixin selector official b
Lewp;b:Lwp;
intermediary field_21760
Lnet/minecraft/class_4729;field_21760:Lnet/minecraft/class_2960;
named OLD_BANNER_BASE_TEXTURE
Lnet/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 e
Lewp;e:I
intermediary field_32966
Lnet/minecraft/class_4729;field_32966:I
named field_32966
Lnet/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 f
Lewp;f:I
intermediary field_32967
Lnet/minecraft/class_4729;field_32967:I
named field_32967
Lnet/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 g
Lewp;g:I
intermediary field_32968
Lnet/minecraft/class_4729;field_32968:I
named field_32968
Lnet/minecraft/client/resource/Format4ResourcePack;field_32968:I
-
IRON_GOLEM_TEXTURE
- Mappings:
Namespace Name Mixin selector official h
Lewp;h:Lwp;
intermediary field_21761
Lnet/minecraft/class_4729;field_21761:Lnet/minecraft/class_2960;
named IRON_GOLEM_TEXTURE
Lnet/minecraft/client/resource/Format4ResourcePack;IRON_GOLEM_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32969
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official i
Lewp;i:Ljava/lang/String;
intermediary field_32969
Lnet/minecraft/class_4729;field_32969:Ljava/lang/String;
named field_32969
Lnet/minecraft/client/resource/Format4ResourcePack;field_32969:Ljava/lang/String;
-
parent
- Mappings:
Namespace Name Mixin selector official n
Lewp;n:Lacn;
intermediary field_21766
Lnet/minecraft/class_4729;field_21766:Lnet/minecraft/class_3262;
named parent
Lnet/minecraft/client/resource/Format4ResourcePack;parent:Lnet/minecraft/resource/ResourcePack;
-
-
Constructor Details
-
Format4ResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Lewp;<init>(Lacn;)V
intermediary <init>
Lnet/minecraft/class_4729;<init>(Lnet/minecraft/class_3262;)V
named <init>
Lnet/minecraft/client/resource/Format4ResourcePack;<init>(Lnet/minecraft/resource/ResourcePack;)V
-
-
Method Details
-
openRoot
- Specified by:
openRoot
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lacn;b(Ljava/lang/String;)Ljava/io/InputStream;
intermediary method_14410
Lnet/minecraft/class_3262;method_14410(Ljava/lang/String;)Ljava/io/InputStream;
named openRoot
Lnet/minecraft/resource/ResourcePack;openRoot(Ljava/lang/String;)Ljava/io/InputStream;
-
contains
- Specified by:
contains
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official b
Lacn;b(Laco;Lwp;)Z
intermediary method_14411
Lnet/minecraft/class_3262;method_14411(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Z
named contains
Lnet/minecraft/resource/ResourcePack;contains(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Z
-
open
- Specified by:
open
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lacn;a(Laco;Lwp;)Ljava/io/InputStream;
intermediary method_14405
Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/io/InputStream;
named open
Lnet/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 a
Lewp;a(Ljava/io/InputStream;Ljava/io/InputStream;IIIII)Ljava/io/InputStream;
intermediary method_24134
Lnet/minecraft/class_4729;method_24134(Ljava/io/InputStream;Ljava/io/InputStream;IIIII)Ljava/io/InputStream;
named openCroppedStream
Lnet/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 a
Lewp;a(Ljava/io/InputStream;)Ljava/io/InputStream;
intermediary method_24199
Lnet/minecraft/class_4729;method_24199(Ljava/io/InputStream;)Ljava/io/InputStream;
named method_24199
Lnet/minecraft/client/resource/Format4ResourcePack;method_24199(Ljava/io/InputStream;)Ljava/io/InputStream;
-
cropLeftChestTexture
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lewp;b(Ljava/io/InputStream;)Ljava/io/InputStream;
intermediary method_24133
Lnet/minecraft/class_4729;method_24133(Ljava/io/InputStream;)Ljava/io/InputStream;
named cropLeftChestTexture
Lnet/minecraft/client/resource/Format4ResourcePack;cropLeftChestTexture(Ljava/io/InputStream;)Ljava/io/InputStream;
-
cropRightChestTexture
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official c
Lewp;c(Ljava/io/InputStream;)Ljava/io/InputStream;
intermediary method_24137
Lnet/minecraft/class_4729;method_24137(Ljava/io/InputStream;)Ljava/io/InputStream;
named cropRightChestTexture
Lnet/minecraft/client/resource/Format4ResourcePack;cropRightChestTexture(Ljava/io/InputStream;)Ljava/io/InputStream;
-
cropSingleChestTexture
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official d
Lewp;d(Ljava/io/InputStream;)Ljava/io/InputStream;
intermediary method_24138
Lnet/minecraft/class_4729;method_24138(Ljava/io/InputStream;)Ljava/io/InputStream;
named cropSingleChestTexture
Lnet/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:
findResources
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lacn;a(Laco;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
intermediary method_14408
Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lacn;a(Laco;)Ljava/util/Set;
intermediary method_14406
Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
named getNamespaces
Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
-
parseMetadata
- Specified by:
parseMetadata
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lacn;a(Lacr;)Ljava/lang/Object;
intermediary method_14407
Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;
named parseMetadata
Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
-
getName
- Specified by:
getName
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lacn;a()Ljava/lang/String;
intermediary method_14409
Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;
named getName
Lnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official close
Lacn;close()V
intermediary close
Lnet/minecraft/class_3262;close()V
named close
Lnet/minecraft/resource/ResourcePack;close()V
-
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 a
Lewp;a(Ldoh;Ldoh;IIIIIIIZZ)V
intermediary method_24132
Lnet/minecraft/class_4729;method_24132(Lnet/minecraft/class_1011;Lnet/minecraft/class_1011;IIIIIIIZZ)V
named loadBytes
Lnet/minecraft/client/resource/Format4ResourcePack;loadBytes(Lnet/minecraft/client/texture/NativeImage;Lnet/minecraft/client/texture/NativeImage;IIIIIIIZZ)V
-