Package net.minecraft.server.packs
Class VanillaPackResources
java.lang.Object
net.minecraft.server.packs.VanillaPackResources
- All Implemented Interfaces:
- AutoCloseable,- PackResources,- IPackResourcesExtension
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.server.packs.PackResourcesPackResources.ResourceOutput
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final BuiltInMetadataFields inherited from interface net.minecraft.server.packs.PackResourcesMETADATA_EXTENSION, PACK_META
- 
Constructor SummaryConstructorsConstructorDescriptionVanillaPackResources(BuiltInMetadata p_249743_, Set<String> p_250468_, List<Path> p_248798_, Map<PackType, List<Path>> p_251106_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(MetadataSectionSerializer<T> p_10333_) getNamespaces(PackType p_10322_) getResource(PackType p_250512_, ResourceLocation p_251554_) private static voidgetResources(PackResources.ResourceOutput p_249662_, String p_251249_, Path p_251290_, List<String> p_250451_) getRootResource(String... p_250530_) booleanvoidlistRawPaths(PackType p_252103_, ResourceLocation p_250441_, Consumer<Path> p_251968_) voidlistResources(PackType p_248974_, String p_248703_, String p_250848_, PackResources.ResourceOutput p_249668_) packId()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtensionisHidden
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
metadata
- 
namespaces
- 
rootPaths
- 
pathsForType
 
- 
- 
Constructor Details- 
VanillaPackResources
 
- 
- 
Method Details- 
getRootResource- Specified by:
- getRootResourcein interface- PackResources
 
- 
listRawPaths
- 
listResourcespublic void listResources(PackType p_248974_, String p_248703_, String p_250848_, PackResources.ResourceOutput p_249668_) - Specified by:
- listResourcesin interface- PackResources
 
- 
getResourcesprivate static void getResources(PackResources.ResourceOutput p_249662_, String p_251249_, Path p_251290_, List<String> p_250451_) 
- 
getResource@Nullable public IoSupplier<InputStream> getResource(PackType p_250512_, ResourceLocation p_251554_) - Specified by:
- getResourcein interface- PackResources
 
- 
getNamespaces- Specified by:
- getNamespacesin interface- PackResources
 
- 
getMetadataSection- Specified by:
- getMetadataSectionin interface- PackResources
 
- 
packId- Specified by:
- packIdin interface- PackResources
 
- 
isBuiltinpublic boolean isBuiltin()- Specified by:
- isBuiltinin interface- PackResources
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- PackResources
 
- 
asProvider
 
-