类 PathPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraft.server.packs.PathPackResources
- 所有已实现的接口:
AutoCloseable
,PackResources
,IForgePackResources
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
字段概要
字段修饰符和类型字段说明private static final org.slf4j.Logger
private static final com.google.common.base.Joiner
private final Path
从接口继承的字段 net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
close()
getNamespaces
(PackType pType) static IoSupplier<InputStream>
getResource
(ResourceLocation pLocation, Path pPath) getResource
(PackType pPackType, ResourceLocation pLocation) getRootResource
(String... pElements) static void
listPath
(String pNamespace, Path pNamespacePath, List<String> pDecomposedPath, PackResources.ResourceOutput pResourceOutput) void
listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) private static IoSupplier<InputStream>
returnFileIfExists
(Path pPath) static boolean
validatePath
(Path pPath) 从类继承的方法 net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, isBuiltin, packId, toString
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraftforge.common.extensions.IForgePackResources
getChildren, isHidden
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PATH_JOINER
private static final com.google.common.base.Joiner PATH_JOINER -
root
-
-
构造器详细资料
-
PathPackResources
-
-
方法详细资料
-
getRootResource
-
validatePath
-
getResource
@Nullable public IoSupplier<InputStream> getResource(PackType pPackType, ResourceLocation pLocation) -
getResource
-
returnFileIfExists
-
listResources
public void listResources(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) -
listPath
public static void listPath(String pNamespace, Path pNamespacePath, List<String> pDecomposedPath, PackResources.ResourceOutput pResourceOutput) -
getNamespaces
-
close
public void close()
-