Uses of Enum Class
net.minecraft.resource.ResourceType
Package
Description
The base package for all Minecraft classes.
Provides resources to Minecraft, including resource access, provision, and reloading.
-
Uses of ResourceType in net.minecraft
Modifier and TypeMethodDescriptionint
GameVersion.getResourceVersion
(ResourceType type) int
MinecraftVersion.getResourceVersion
(ResourceType type) -
Uses of ResourceType in net.minecraft.resource
Modifier and TypeFieldDescriptionprivate final ResourceType
FileResourcePackProvider.type
private final ResourceType
NamespaceResourceManager.type
private final ResourceType
ReloadableResourceManagerImpl.type
private final ResourceType
VanillaResourcePackProvider.type
Modifier and TypeFieldDescriptionprivate final Map<ResourceType,
List<Path>> DefaultResourcePack.namespacePaths
private final Map<ResourceType,
Set<Path>> DefaultResourcePackBuilder.paths
private static final Map<ResourceType,
Path> DefaultResourcePackBuilder.RESOURCE_TYPE_TO_PATH
Modifier and TypeMethodDescriptionstatic ResourceType
Returns the enum constant of this class with the specified name.static ResourceType[]
ResourceType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionprivate void
DefaultResourcePackBuilder.addPath
(ResourceType type, Path path) static @Nullable ResourcePackProfile
ResourcePackProfile.create
(String name, Text displayName, boolean alwaysEnabled, ResourcePackProfile.PackFactory packFactory, ResourceType type, ResourcePackProfile.InsertionPosition position, ResourcePackSource source) void
DefaultResourcePack.findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) void
DirectoryResourcePack.findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) void
ResourcePack.findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) void
ZipResourcePack.findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) void
DefaultResourcePack.forEachNamespacedPath
(ResourceType type, Identifier path, Consumer<Path> consumer) static ResourcePackCompatibility
ResourcePackCompatibility.from
(int packVersion, ResourceType type) ResourcePackProfile.Metadata.getCompatibility
(ResourceType type) DefaultResourcePack.getNamespaces
(ResourceType type) DirectoryResourcePack.getNamespaces
(ResourceType type) ResourcePack.getNamespaces
(ResourceType type) ZipResourcePack.getNamespaces
(ResourceType type) static ResourcePackProfile
ResourcePackProfile.of
(String name, Text displayName, boolean alwaysEnabled, ResourcePackProfile.PackFactory packFactory, ResourcePackProfile.Metadata metadata, ResourceType type, ResourcePackProfile.InsertionPosition position, boolean pinned, ResourcePackSource source) Creates a resource pack profile from the given parameters.DefaultResourcePack.open
(ResourceType type, Identifier id) DirectoryResourcePack.open
(ResourceType type, Identifier id) ResourcePack.open
(ResourceType type, Identifier id) ZipResourcePack.open
(ResourceType type, Identifier id) private static String
ZipResourcePack.toPath
(ResourceType type, Identifier id) DefaultResourcePackBuilder.withPath
(ResourceType type, Path path) DefaultResourcePackBuilder.withPaths
(ResourceType type, Class<?> clazz) ModifierConstructorDescriptionFileResourcePackProvider
(Path packsDir, ResourceType type, ResourcePackSource source) LifecycledResourceManagerImpl
(ResourceType type, List<ResourcePack> packs) NamespaceResourceManager
(ResourceType type, String namespace) VanillaResourcePackProvider
(ResourceType type, DefaultResourcePack resourcePack, Identifier id) ModifierConstructorDescription(package private)
DefaultResourcePack
(ResourceMetadataMap metadata, Set<String> namespaces, List<Path> rootPaths, Map<ResourceType, List<Path>> namespacePaths)