类 EmptyPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.neoforged.neoforge.resource.EmptyPackResources
- 所有已实现的接口:
AutoCloseable
,PackResources
,IPackResourcesExtension
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
字段概要
字段从接口继承的字段 net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
close()
<T> T
getMetadataSection
(MetadataSectionType<T> type) 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) 从类继承的方法 net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, location, toString
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHidden
从接口继承的方法 net.minecraft.server.packs.PackResources
knownPackInfo, packId
-
字段详细资料
-
packMeta
-
-
构造器详细资料
-
EmptyPackResources
-
-
方法详细资料
-
getMetadataSection
- 指定者:
getMetadataSection
在接口中PackResources
- 覆盖:
getMetadataSection
在类中AbstractPackResources
-
close
public void close() -
listResources
public void listResources(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) -
getNamespaces
-
getRootResource
-
getResource
@Nullable public @Nullable IoSupplier<InputStream> getResource(PackType type, ResourceLocation location)
-