Class FilePackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraft.server.packs.FilePackResources
- All Implemented Interfaces:
AutoCloseable, PackResources, IPackResourcesExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface PackResources
PackResources.ResourceOutput -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final Stringprivate final FilePackResources.SharedZipFileAccessFields inherited from interface PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
ConstructorsConstructorDescriptionFilePackResources(PackLocationInfo location, FilePackResources.SharedZipFileAccess zipFileAccess, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringvoidclose()static StringextractNamespace(String prefix, String name) getNamespaces(PackType type) private static StringgetPathFromLocation(PackType type, Identifier location) private @Nullable IoSupplier<InputStream> getResource(String path) getResource(PackType type, Identifier location) @Nullable IoSupplier<InputStream> getRootResource(String... path) voidlistResources(PackType type, String namespace, String directory, PackResources.ResourceOutput output) Methods inherited from class AbstractPackResources
getMetadataSection, loadMetadata, location, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IPackResourcesExtension
isHiddenMethods inherited from interface PackResources
knownPackInfo, packId
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
zipFileAccess
-
prefix
-
-
Constructor Details
-
Method Details
-
getPathFromLocation
-
getRootResource
-
getResource
-
addPrefix
-
getResource
-
getNamespaces
-
extractNamespace
-
close
public void close() -
listResources
public void listResources(PackType type, String namespace, String directory, PackResources.ResourceOutput output)
-