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
FieldsModifier and TypeFieldDescriptionprivate static final com.google.common.base.CharMatcherprivate static final org.slf4j.Loggerprivate static final booleanFields inherited from class net.minecraft.server.packs.AbstractPackResources
fileFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private FilegetNamespaces(PackType p_10259_) protected InputStreamgetResource(String p_10277_) getResources(PackType p_215329_, String p_215330_, String p_215331_, Predicate<ResourceLocation> p_215332_) protected booleanhasResource(String p_10279_) private voidlistResources(File p_215334_, String p_215335_, List<ResourceLocation> p_215336_, String p_215337_, Predicate<ResourceLocation> p_215338_) static booleanvalidatePath(File p_10274_, String p_10275_) Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, getName, getRelativePath, getResource, getRootResource, hasResource, logWarning, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getResourcein classAbstractPackResources- Throws:
IOException
-
hasResource
- Specified by:
hasResourcein 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_)
-