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> p_10215_, InputStream p_10216_) <T> TgetMetadataSection(MetadataSectionSerializer<T> p_10213_) 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
- Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
getMetadataFromStream
@Nullable public static <T> T getMetadataFromStream(MetadataSectionSerializer<T> p_10215_, InputStream p_10216_) -
location
- Specified by:
locationin interfacePackResources
-
toString
-