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 SummaryNested classes/interfaces inherited from interface net.minecraft.server.packs.PackResourcesPackResources.ResourceOutput
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final org.slf4j.Loggerprivate final StringFields inherited from interface net.minecraft.server.packs.PackResourcesMETADATA_EXTENSION, PACK_META
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractPackResources(String p_255888_, boolean p_256392_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TgetMetadataFromStream(MetadataSectionSerializer<T> p_10215_, InputStream p_10216_) <T> TgetMetadataSection(MetadataSectionSerializer<T> p_10213_) booleanpackId()toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtensionisHiddenMethods inherited from interface net.minecraft.server.packs.PackResourcesclose, getNamespaces, getResource, getRootResource, listResources
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
name
- 
isBuiltinprivate final boolean isBuiltin
 
- 
- 
Constructor Details- 
AbstractPackResources
 
- 
- 
Method Details- 
getMetadataSection- Specified by:
- getMetadataSectionin interface- PackResources
- Throws:
- IOException
 
- 
getMetadataFromStream@Nullable public static <T> T getMetadataFromStream(MetadataSectionSerializer<T> p_10215_, InputStream p_10216_) 
- 
packId- Specified by:
- packIdin interface- PackResources
 
- 
isBuiltinpublic boolean isBuiltin()- Specified by:
- isBuiltinin interface- PackResources
 
- 
toString
 
-