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
Modifier and TypeFieldDescriptionprivate final PackLocationInfo
private static final org.slf4j.Logger
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getMetadataFromStream
(MetadataSectionSerializer<T> p_10215_, InputStream p_10216_) <T> T
getMetadataSection
(MetadataSectionSerializer<T> p_10213_) location()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHidden
Methods 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:
getMetadataSection
in interfacePackResources
- Throws:
IOException
-
getMetadataFromStream
@Nullable public static <T> T getMetadataFromStream(MetadataSectionSerializer<T> p_10215_, InputStream p_10216_) -
location
- Specified by:
location
in interfacePackResources
-
toString
-