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 com.google.common.base.CharMatcher
private static org.apache.logging.log4j.Logger
private static 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_10261_, String p_10262_, String p_10263_, int p_10264_, Predicate<String> p_10265_)
protected boolean
hasResource(String p_10279_)
private void
listResources(File p_10267_, int p_10268_, String p_10269_, List<ResourceLocation> p_10270_, String p_10271_, Predicate<String> p_10272_)
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
isHidden
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.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_10261_, String p_10262_, String p_10263_, int p_10264_, Predicate<String> p_10265_) -
listResources
-