类 FilePackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraft.server.packs.FilePackResources
- 所有已实现的接口:
AutoCloseable
,PackResources
,IForgePackResources
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
字段概要
字段修饰符和类型字段说明private boolean
private final File
private static final org.slf4j.Logger
static final com.google.common.base.Splitter
private ZipFile
从接口继承的字段 net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
close()
protected void
finalize()
getNamespaces
(PackType pType) private ZipFile
private static String
getPathFromLocation
(PackType pPackType, ResourceLocation pLocation) private IoSupplier<InputStream>
getResource
(String pResourcePath) getResource
(PackType pPackType, ResourceLocation pLocation) getRootResource
(String... pElements) void
listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) 从类继承的方法 net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, isBuiltin, packId, toString
从接口继承的方法 net.minecraftforge.common.extensions.IForgePackResources
getChildren, isHidden
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SPLITTER
public static final com.google.common.base.Splitter SPLITTER -
file
-
zipFile
-
failedToLoad
private boolean failedToLoad
-
-
构造器详细资料
-
FilePackResources
-
-
方法详细资料
-
getOrCreateZipFile
-
getPathFromLocation
-
getRootResource
-
getResource
-
getResource
-
getNamespaces
-
finalize
-
close
public void close() -
listResources
public void listResources(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput)
-