Package net.minecraft.server.packs
Class AbstractPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IForgePackResources
- Direct Known Subclasses:
DelegatingPackResources
,FilePackResources
,PathPackResources
,PathPackResources
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final org.slf4j.Logger
private final String
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPackResources
(String p_255888_, boolean p_256392_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getMetadataFromStream
(MetadataSectionSerializer<T> p_10215_, InputStream p_10216_) <T> T
getMetadataSection
(MetadataSectionSerializer<T> p_10213_) boolean
packId()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
getChildren, isHidden
Methods inherited from interface net.minecraft.server.packs.PackResources
close, getNamespaces, getResource, getRootResource, listResources
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
name
-
isBuiltin
private final boolean isBuiltin
-
-
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_) -
packId
- Specified by:
packId
in interfacePackResources
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltin
in interfacePackResources
-
toString
-