类 Format3ResourcePack
- java.lang.Object
-
- net.minecraft.client.resource.Format3ResourcePack
-
- 所有已实现的接口:
AutoCloseable,ResourcePack
@Environment(CLIENT) public class Format3ResourcePack extends Object implements ResourcePack
- Mappings:
Namespace Name official ewointermediary net/minecraft/class_1073named net/minecraft/client/resource/Format3ResourcePack
-
-
字段概要
字段 修饰符和类型 字段 说明 private Map<Identifier,Identifier>idMapstatic Map<Identifier,Identifier>NEW_TO_OLD_MAPprivate ResourcePackparent-
从接口继承的字段 net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
-
构造器概要
构造器 构造器 说明 Format3ResourcePack(ResourcePack parent, Map<Identifier,Identifier> idMap)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()booleancontains(ResourceType type, Identifier id)Collection<Identifier>findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)private static IdentifiergetMetadataLocation(Identifier id)StringgetName()Set<String>getNamespaces(ResourceType type)private IdentifiergetRedirectedId(Identifier id)InputStreamopen(ResourceType type, Identifier id)InputStreamopenRoot(String fileName)<T> TparseMetadata(ResourceMetadataReader<T> metaReader)
-
-
-
字段详细资料
-
NEW_TO_OLD_MAP
public static final Map<Identifier,Identifier> NEW_TO_OLD_MAP
- Mappings:
Namespace Name Mixin selector official aLewo;a:Ljava/util/Map;intermediary field_5317Lnet/minecraft/class_1073;field_5317:Ljava/util/Map;named NEW_TO_OLD_MAPLnet/minecraft/client/resource/Format3ResourcePack;NEW_TO_OLD_MAP:Ljava/util/Map;
-
parent
private final ResourcePack parent
- Mappings:
Namespace Name Mixin selector official bLewo;b:Lacn;intermediary field_5316Lnet/minecraft/class_1073;field_5316:Lnet/minecraft/class_3262;named parentLnet/minecraft/client/resource/Format3ResourcePack;parent:Lnet/minecraft/resource/ResourcePack;
-
idMap
private final Map<Identifier,Identifier> idMap
- Mappings:
Namespace Name Mixin selector official eLewo;e:Ljava/util/Map;intermediary field_5318Lnet/minecraft/class_1073;field_5318:Ljava/util/Map;named idMapLnet/minecraft/client/resource/Format3ResourcePack;idMap:Ljava/util/Map;
-
-
构造器详细资料
-
Format3ResourcePack
public Format3ResourcePack(ResourcePack parent, Map<Identifier,Identifier> idMap)
- Mappings:
Namespace Name Mixin selector official <init>Lewo;<init>(Lacn;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_1073;<init>(Lnet/minecraft/class_3262;Ljava/util/Map;)Vnamed <init>Lnet/minecraft/client/resource/Format3ResourcePack;<init>(Lnet/minecraft/resource/ResourcePack;Ljava/util/Map;)V
-
-
方法详细资料
-
getMetadataLocation
private static Identifier getMetadataLocation(Identifier id)
- Mappings:
Namespace Name Mixin selector official aLewo;a(Lwp;)Lwp;intermediary method_4660Lnet/minecraft/class_1073;method_4660(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;named getMetadataLocationLnet/minecraft/client/resource/Format3ResourcePack;getMetadataLocation(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
-
getRedirectedId
private Identifier getRedirectedId(Identifier id)
- Mappings:
Namespace Name Mixin selector official bLewo;b(Lwp;)Lwp;intermediary method_4658Lnet/minecraft/class_1073;method_4658(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;named getRedirectedIdLnet/minecraft/client/resource/Format3ResourcePack;getRedirectedId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
-
openRoot
public InputStream openRoot(String fileName) throws IOException
- 指定者:
openRoot在接口中ResourcePack- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official bLacn;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;
-
open
public InputStream open(ResourceType type, Identifier id) throws IOException
- 指定者:
open在接口中ResourcePack- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLacn;a(Laco;Lwp;)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;
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
- 指定者:
findResources在接口中ResourcePack- Mappings:
Namespace Name Mixin selector official aLacn;a(Laco;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;
-
contains
public boolean contains(ResourceType type, Identifier id)
- 指定者:
contains在接口中ResourcePack- Mappings:
Namespace Name Mixin selector official bLacn;b(Laco;Lwp;)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
-
getNamespaces
public Set<String> getNamespaces(ResourceType type)
- 指定者:
getNamespaces在接口中ResourcePack- Mappings:
Namespace Name Mixin selector official aLacn;a(Laco;)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
@Nullable public <T> T parseMetadata(ResourceMetadataReader<T> metaReader) throws IOException
- 指定者:
parseMetadata在接口中ResourcePack- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLacn;a(Lacr;)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
public String getName()
- 指定者:
getName在接口中ResourcePack- Mappings:
Namespace Name Mixin selector official aLacn;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()
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中ResourcePack- Mappings:
Namespace Name Mixin selector official closeLacn;close()Vintermediary closeLnet/minecraft/class_3262;close()Vnamed closeLnet/minecraft/resource/ResourcePack;close()V
-
-