类 DelegatingPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraftforge.resource.DelegatingPackResources
- 所有已实现的接口:
AutoCloseable
,PackResources
,IForgePackResources
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
字段概要
字段修饰符和类型字段说明private final List
<PackResources> private final Map
<String, List<PackResources>> private final Map
<String, List<PackResources>> private final PackMetadataSection
从接口继承的字段 net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
构造器概要
构造器构造器说明DelegatingPackResources
(PackLocationInfo info, PackMetadataSection packMeta, List<? extends PackResources> packs) -
方法概要
修饰符和类型方法说明private Map
<String, List<PackResources>> buildNamespaceMap
(PackType type, List<PackResources> packList) void
close()
private List
<PackResources> getCandidatePacks
(PackType type, ResourceLocation location) @Nullable Collection
<PackResources> Gets a collection ofPackResource
instances nested inside this pack.<T> T
getMetadataSection
(MetadataSectionType<T> deserializer) getNamespaces
(PackType type) @Nullable IoSupplier
<InputStream> getResource
(PackType type, ResourceLocation location) @Nullable IoSupplier
<InputStream> getRootResource
(String... paths) void
listResources
(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) supplier()
从类继承的方法 net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, location, toString
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraftforge.common.extensions.IForgePackResources
isHidden
从接口继承的方法 net.minecraft.server.packs.PackResources
knownPackInfo, packId
-
字段详细资料
-
packMeta
-
delegates
-
namespacesAssets
-
namespacesData
-
-
构造器详细资料
-
DelegatingPackResources
public DelegatingPackResources(PackLocationInfo info, PackMetadataSection packMeta, List<? extends PackResources> packs)
-
-
方法详细资料
-
buildNamespaceMap
private Map<String,List<PackResources>> buildNamespaceMap(PackType type, List<PackResources> packList) -
getMetadataSection
- 指定者:
getMetadataSection
在接口中PackResources
- 覆盖:
getMetadataSection
在类中AbstractPackResources
- 抛出:
IOException
-
listResources
public void listResources(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) -
getNamespaces
-
close
public void close() -
getRootResource
-
getResource
@Nullable public @Nullable IoSupplier<InputStream> getResource(PackType type, ResourceLocation location) -
getChildren
从接口复制的说明:IForgePackResources
Gets a collection ofPackResource
instances nested inside this pack. Used to merge several packs into one entry in the resource pack selection UI without losing the ability for each pack to return a resource inResourceManager.getResourceStack(ResourceLocation)
- 返回:
- Collection of nested
PackResource
, or null if this pack has no children - 另请参阅:
-
getCandidatePacks
-
supplier
-