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 pPackType) int
WorldVersion.getPackVersion
(PackType pPackType) -
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 pType) FilePackResources.getNamespaces
(PackType pType) PackResources.getNamespaces
(PackType pType) PathPackResources.getNamespaces
(PackType pType) VanillaPackResources.getNamespaces
(PackType pType) private static String
FilePackResources.getPathFromLocation
(PackType pPackType, ResourceLocation pLocation) CompositePackResources.getResource
(PackType pPackType, ResourceLocation pLocation) FilePackResources.getResource
(PackType pPackType, ResourceLocation pLocation) PackResources.getResource
(PackType pPackType, ResourceLocation pLocation) PathPackResources.getResource
(PackType pPackType, ResourceLocation pLocation) VanillaPackResources.getResource
(PackType pPackType, ResourceLocation pLocation) void
VanillaPackResources.listRawPaths
(PackType pPackType, ResourceLocation pPackLocation, Consumer<Path> pOutput) void
CompositePackResources.listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) void
FilePackResources.listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) void
PackResources.listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) void
PathPackResources.listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) void
VanillaPackResources.listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) VanillaPackResourcesBuilder.pushAssetPath
(PackType pPackType, Path pPath) VanillaPackResourcesBuilder.pushClasspathResources
(PackType pPackType, Class<?> pClazz) private void
VanillaPackResourcesBuilder.pushPathForType
(PackType pPackType, Path pPath) Constructor parameters in net.minecraft.server.packs with type arguments of type PackTypeModifierConstructorDescription(package private)
VanillaPackResources
(PackLocationInfo pLocation, BuiltInMetadata pMetadata, Set<String> pNamespaces, List<Path> pRootPaths, Map<PackType, List<Path>> pPathsForType) -
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 pLocation, Pack.ResourcesSupplier pResources, PackType pPackType, PackSelectionConfig pSelectionConfig) Constructors in net.minecraft.server.packs.repository with parameters of type PackTypeModifierConstructorDescriptionBuiltInPackSource
(PackType pPackType, VanillaPackResources pVanillaPack, ResourceLocation pPackDir, DirectoryValidator pValidator) FolderRepositorySource
(Path pFolder, PackType pPackType, PackSource pPackSource, DirectoryValidator pValidator) -
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 pType, String pNamespace) MultiPackResourceManager
(PackType pType, List<PackResources> pPacks) -
Uses of PackType in net.neoforged.neoforge.common.data
Fields in net.neoforged.neoforge.common.data declared as PackTypeModifier and TypeFieldDescription(package private) final PackType
ExistingFileHelper.ResourceType.packType
Fields in net.neoforged.neoforge.common.data with type parameters of type PackTypeModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap
<PackType, ResourceLocation> ExistingFileHelper.generated
Methods in net.neoforged.neoforge.common.data that return PackTypeModifier and TypeMethodDescriptionExistingFileHelper.IResourceType.getPackType()
ExistingFileHelper.ResourceType.getPackType()
Methods in net.neoforged.neoforge.common.data with parameters of type PackTypeModifier and TypeMethodDescriptionboolean
ExistingFileHelper.exists
(ResourceLocation loc, PackType packType) Check if a given resource exists in the known resource packs.boolean
ExistingFileHelper.exists
(ResourceLocation loc, PackType packType, String pathSuffix, String pathPrefix) Check if a given resource exists in the known resource packs.private ResourceManager
ExistingFileHelper.getManager
(PackType packType) ExistingFileHelper.getResource
(ResourceLocation loc, PackType packType) ExistingFileHelper.getResource
(ResourceLocation loc, PackType packType, String pathSuffix, String pathPrefix) ExistingFileHelper.getResourceStack
(ResourceLocation loc, PackType packType) void
ExistingFileHelper.trackGenerated
(ResourceLocation loc, PackType packType, String pathSuffix, String pathPrefix) Track the existence of a generated file.Constructors in net.neoforged.neoforge.common.data with parameters of type PackTypeModifierConstructorDescriptionJsonCodecProvider
(PackOutput output, PackOutput.Target target, String directory, PackType packType, com.mojang.serialization.Codec<T> codec, CompletableFuture<HolderLookup.Provider> lookupProvider, String modId, ExistingFileHelper existingFileHelper) ResourceType
(PackType type, String suffix, String prefix) -
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.oldtest.world
Methods in net.neoforged.neoforge.oldtest.world with parameters of type PackTypeModifier and TypeMethodDescriptionLoginPacketSplitTest.InMemoryResourcePack.getNamespaces
(PackType type) @Nullable IoSupplier
<InputStream> LoginPacketSplitTest.InMemoryResourcePack.getResource
(PackType type, ResourceLocation loc) void
LoginPacketSplitTest.InMemoryResourcePack.listResources
(PackType type, String namespace, String startingPath, PackResources.ResourceOutput out) -
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)