Package net.minecraft.server.packs
Class AbstractPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
- All Implemented Interfaces:
AutoCloseable,PackResources,IPackResourcesExtension
- Direct Known Subclasses:
EmptyPackResources,FilePackResources,PathPackResources
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PackLocationInfoprivate static final org.slf4j.LoggerFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TgetMetadataFromStream(MetadataSectionSerializer<T> pDeserializer, InputStream pInputStream) <T> TgetMetadataSection(MetadataSectionSerializer<T> pDeserializer) location()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHiddenMethods inherited from interface net.minecraft.server.packs.PackResources
close, getNamespaces, getResource, getRootResource, knownPackInfo, listResources, packId
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
location
-
-
Constructor Details
-
AbstractPackResources
-
-
Method Details
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> pDeserializer) throws IOException - Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
getMetadataFromStream
@Nullable public static <T> T getMetadataFromStream(MetadataSectionSerializer<T> pDeserializer, InputStream pInputStream) -
location
- Specified by:
locationin interfacePackResources
-
toString
-