Package net.minecraft.server.packs
Class FolderPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraft.server.packs.FolderPackResources
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IForgePackResources
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.google.common.base.CharMatcher
private static final org.slf4j.Logger
private static final boolean
Fields inherited from class net.minecraft.server.packs.AbstractPackResources
file
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private File
getNamespaces
(PackType p_10259_) protected InputStream
getResource
(String p_10277_) getResources
(PackType p_215329_, String p_215330_, String p_215331_, Predicate<ResourceLocation> p_215332_) protected boolean
hasResource
(String p_10279_) private void
listResources
(File p_215334_, String p_215335_, List<ResourceLocation> p_215336_, String p_215337_, Predicate<ResourceLocation> p_215338_) static boolean
validatePath
(File p_10274_, String p_10275_) Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, getName, getRelativePath, getResource, getRootResource, hasResource, logWarning, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
init, initForNamespace, isHidden
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ON_WINDOWS
private static final boolean ON_WINDOWS -
BACKSLASH_MATCHER
private static final com.google.common.base.CharMatcher BACKSLASH_MATCHER
-
-
Constructor Details
-
FolderPackResources
-
-
Method Details
-
validatePath
- Throws:
IOException
-
getResource
- Specified by:
getResource
in classAbstractPackResources
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in classAbstractPackResources
-
getFile
-
getNamespaces
-
close
public void close() -
getResources
public Collection<ResourceLocation> getResources(PackType p_215329_, String p_215330_, String p_215331_, Predicate<ResourceLocation> p_215332_) -
listResources
private void listResources(File p_215334_, String p_215335_, List<ResourceLocation> p_215336_, String p_215337_, Predicate<ResourceLocation> p_215338_)
-