Package net.minecraft.server.packs
Interface PackResources
- All Superinterfaces:
AutoCloseable,IPackResourcesExtension
- All Known Implementing Classes:
AbstractPackResources,CompositePackResources,EmptyPackResources,FilePackResources,LoginPacketSplitTest.InMemoryResourcePack,PathPackResources,VanillaPackResources
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(MetadataSectionSerializer<T> p_10291_) getNamespaces(PackType p_10283_) getResource(PackType p_215339_, ResourceLocation p_249034_) getRootResource(String... p_252049_) voidlistResources(PackType p_10289_, String p_251379_, String p_251932_, PackResources.ResourceOutput p_249347_) location()default StringpackId()Methods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHidden
-
Field Details
-
METADATA_EXTENSION
- See Also:
-
PACK_META
- See Also:
-
-
Method Details
-
getRootResource
-
getResource
-
listResources
void listResources(PackType p_10289_, String p_251379_, String p_251932_, PackResources.ResourceOutput p_249347_) -
getNamespaces
-
getMetadataSection
- Throws:
IOException
-
location
PackLocationInfo location() -
packId
-
knownPackInfo
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-