Uses of Enum Class
net.minecraft.server.packs.PackType
Packages that use PackType
Package
Description
-
Uses of PackType in net.minecraft
Methods in net.minecraft with parameters of type PackTypeModifier and TypeMethodDescriptionint
DetectedVersion.getPackVersion
(PackType p_265454_) int
WorldVersion.getPackVersion
(PackType p_265245_) -
Uses of PackType in net.minecraft.server.packs
Fields in net.minecraft.server.packs with type parameters of type PackTypeModifier and TypeFieldDescriptionVanillaPackResources.pathsForType
VanillaPackResourcesBuilder.pathsForType
VanillaPackResourcesBuilder.ROOT_DIR_BY_TYPE
Methods in net.minecraft.server.packs that return PackTypeModifier and TypeMethodDescriptionstatic PackType
Returns the enum constant of this class with the specified name.static PackType[]
PackType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.server.packs with parameters of type PackTypeModifier and TypeMethodDescriptionCompositePackResources.getNamespaces
(PackType p_294708_) FilePackResources.getNamespaces
(PackType p_10238_) PackResources.getNamespaces
(PackType p_10283_) PathPackResources.getNamespaces
(PackType p_251896_) VanillaPackResources.getNamespaces
(PackType p_10322_) private static String
FilePackResources.getPathFromLocation
(PackType p_250585_, ResourceLocation p_251470_) CompositePackResources.getResource
(PackType p_295406_, ResourceLocation p_296382_) FilePackResources.getResource
(PackType p_249605_, ResourceLocation p_252147_) PackResources.getResource
(PackType p_215339_, ResourceLocation p_249034_) PathPackResources.getResource
(PackType p_249352_, ResourceLocation p_251715_) VanillaPackResources.getResource
(PackType p_250512_, ResourceLocation p_251554_) void
VanillaPackResources.listRawPaths
(PackType p_252103_, ResourceLocation p_250441_, Consumer<Path> p_251968_) void
CompositePackResources.listResources
(PackType p_295490_, String p_296164_, String p_294691_, PackResources.ResourceOutput p_295313_) void
FilePackResources.listResources
(PackType p_250500_, String p_249598_, String p_251613_, PackResources.ResourceOutput p_250655_) void
PackResources.listResources
(PackType p_10289_, String p_251379_, String p_251932_, PackResources.ResourceOutput p_249347_) void
PathPackResources.listResources
(PackType p_251452_, String p_249854_, String p_248650_, PackResources.ResourceOutput p_248572_) void
VanillaPackResources.listResources
(PackType p_248974_, String p_248703_, String p_250848_, PackResources.ResourceOutput p_249668_) VanillaPackResourcesBuilder.pushAssetPath
(PackType p_248623_, Path p_250065_) VanillaPackResourcesBuilder.pushClasspathResources
(PackType p_251987_, Class<?> p_249062_) private void
VanillaPackResourcesBuilder.pushPathForType
(PackType p_250073_, Path p_252259_) Constructor parameters in net.minecraft.server.packs with type arguments of type PackTypeModifierConstructorDescription(package private)
VanillaPackResources
(PackLocationInfo p_326444_, BuiltInMetadata p_249743_, Set<String> p_250468_, List<Path> p_248798_, Map<PackType, List<Path>> p_251106_) -
Uses of PackType in net.minecraft.server.packs.repository
Fields in net.minecraft.server.packs.repository declared as PackTypeModifier and TypeFieldDescriptionprivate final PackType
BuiltInPackSource.packType
private final PackType
FolderRepositorySource.packType
Methods in net.minecraft.server.packs.repository with parameters of type PackTypeModifier and TypeMethodDescriptionstatic Pack
Pack.readMetaAndCreate
(PackLocationInfo p_326065_, Pack.ResourcesSupplier p_252210_, PackType p_250595_, PackSelectionConfig p_326429_) Constructors in net.minecraft.server.packs.repository with parameters of type PackTypeModifierConstructorDescriptionBuiltInPackSource
(PackType p_249137_, VanillaPackResources p_250453_, ResourceLocation p_251151_, DirectoryValidator p_294859_) FolderRepositorySource
(Path p_251796_, PackType p_251664_, PackSource p_250854_, DirectoryValidator p_296354_) -
Uses of PackType in net.minecraft.server.packs.resources
Fields in net.minecraft.server.packs.resources declared as PackTypeModifier and TypeFieldDescriptionprivate final PackType
FallbackResourceManager.type
private final PackType
ReloadableResourceManager.type
Constructors in net.minecraft.server.packs.resources with parameters of type PackTypeModifierConstructorDescriptionFallbackResourceManager
(PackType p_10605_, String p_10606_) MultiPackResourceManager
(PackType p_203797_, List<PackResources> p_203798_) ReloadableResourceManager
(PackType p_203820_) -
Uses of PackType in net.neoforged.neoforge.data.event
Methods in net.neoforged.neoforge.data.event with parameters of type PackTypeModifier and TypeMethodDescriptionprivate static ResourceManager
GatherDataEvent.DataGeneratorConfig.createResourceManager
(PackType packType, Predicate<String> isGeneratedMod, Collection<Path> existingPacks, Consumer<Consumer<PackResources>> consumer) GatherDataEvent.getResourceManager
(PackType packType) -
Uses of PackType in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as PackTypeMethods in net.neoforged.neoforge.event that return PackTypeMethods in net.neoforged.neoforge.event with parameters of type PackTypeModifier and TypeMethodDescriptionvoid
AddPackFindersEvent.addPackFinders
(ResourceLocation packLocation, PackType packType, Component packNameDisplay, PackSource packSource, boolean alwaysActive, Pack.Position packPosition) Helper method to register a pack found under the `resources/` folder.Constructors in net.neoforged.neoforge.event with parameters of type PackTypeModifierConstructorDescriptionAddPackFindersEvent
(PackType packType, Consumer<RepositorySource> sources, boolean trusted) -
Uses of PackType in net.neoforged.neoforge.resource
Methods in net.neoforged.neoforge.resource with parameters of type PackTypeModifier and TypeMethodDescriptionstatic RepositorySource
ResourcePackLoader.buildPackFinder
(Map<net.neoforged.neoforgespi.locating.IModFile, Pack.ResourcesSupplier> modResourcePacks, PackType packType) EmptyPackResources.getNamespaces
(PackType type) ResourcePackLoader.getPackNames
(PackType packType) @Nullable IoSupplier
<InputStream> EmptyPackResources.getResource
(PackType type, ResourceLocation location) void
EmptyPackResources.listResources
(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) private static Pack
private static void
ResourcePackLoader.packFinder
(Map<net.neoforged.neoforgespi.locating.IModFile, Pack.ResourcesSupplier> modResourcePacks, Consumer<Pack> packAcceptor, PackType packType) static void
ResourcePackLoader.populatePackRepository
(PackRepository resourcePacks, PackType packType, boolean trusted) private static Pack.Metadata
ResourcePackLoader.readMeta
(PackType type, PackLocationInfo location, Pack.ResourcesSupplier resources) static Pack
ResourcePackLoader.readWithOptionalMeta
(PackLocationInfo location, Pack.ResourcesSupplier resources, PackType type, PackSelectionConfig selectionConfig)