Class FilePackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackMetadataResources
net.minecraft.server.packs.FilePackResources
- All Implemented Interfaces:
AutoCloseable, PackMetadataResources, PackResources, PackMetadataResourcesExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface PackResources
PackResources.Filter, 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) getRootResource(String... path) voidlistResources(PackType type, String namespace, String directory, PackResources.ResourceOutput output) Methods inherited from class AbstractPackMetadataResources
getMetadataSection, loadMetadata, location, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PackMetadataResources
getMetadataSection, locationMethods inherited from interface PackMetadataResourcesExtension
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
- Specified by:
getRootResourcein interfacePackMetadataResources
-
getResource
- Specified by:
getResourcein interfacePackResources
-
addPrefix
-
getResource
-
getNamespaces
- Specified by:
getNamespacesin interfacePackResources
-
extractNamespace
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePackMetadataResources
-
listResources
public void listResources(PackType type, String namespace, String directory, PackResources.ResourceOutput output) - Specified by:
listResourcesin interfacePackResources
-