Uses of Class
net.minecraft.resource.Resource
Package
Description
Provides resources to Minecraft, including resource access, provision, and reloading.
-
Uses of Resource in net.minecraft.client.font
Modifier and TypeMethodDescriptionprivate static List
<com.mojang.datafixers.util.Pair<FontManager.FontKey, FontLoader.Provider>> FontManager.loadFontProviders
(List<Resource> fontResources, Identifier id) -
Uses of Resource in net.minecraft.client.gl
Modifier and TypeMethodDescriptionprivate static void
ShaderLoader.loadDefinition
(Identifier id, Resource resource, ImmutableMap.Builder<Identifier, ShaderProgramDefinition> builder) private static void
ShaderLoader.loadPostEffect
(Identifier id, Resource resource, ImmutableMap.Builder<Identifier, PostEffectPipeline> builder) private static void
ShaderLoader.loadShaderSource
(Identifier id, Resource resource, CompiledShader.Type type, Map<Identifier, Resource> allResources, ImmutableMap.Builder<ShaderLoader.ShaderSourceKey, String> builder) Modifier and TypeMethodDescriptionprivate static GlImportProcessor
ShaderLoader.createImportProcessor
(Map<Identifier, Resource> allResources, Identifier id) private static void
ShaderLoader.loadShaderSource
(Identifier id, Resource resource, CompiledShader.Type type, Map<Identifier, Resource> allResources, ImmutableMap.Builder<ShaderLoader.ShaderSourceKey, String> builder) -
Uses of Resource in net.minecraft.client.particle
Modifier and TypeMethodDescriptionprivate Optional
<List<Identifier>> ParticleManager.loadTextureList
(Identifier id, Resource resource) -
Uses of Resource in net.minecraft.client.resource.language
-
Uses of Resource in net.minecraft.client.sound
Modifier and TypeFieldDescriptionprivate Map
<Identifier, Resource> SoundManager.SoundList.foundSounds
private final Map
<Identifier, Resource> SoundManager.soundResources
-
Uses of Resource in net.minecraft.client.texture
-
Uses of Resource in net.minecraft.client.texture.atlas
Modifier and TypeMethodDescriptiondefault void
AtlasSource.SpriteRegions.add
(Identifier id, Resource resource) -
Uses of Resource in net.minecraft.registry
Modifier and TypeMethodDescriptionprivate static <E> void
RegistryLoader.parseAndAdd
(MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> decoder, RegistryOps<JsonElement> ops, RegistryKey<E> key, Resource resource, RegistryEntryInfo entryInfo) -
Uses of Resource in net.minecraft.resource
Modifier and TypeMethodDescriptionprivate static Resource
NamespaceResourceManager.createResource
(ResourcePack pack, Identifier id, InputSupplier<InputStream> supplier, InputSupplier<ResourceMetadata> metadataSupplier) default Resource
ResourceFactory.getResourceOrThrow
(Identifier id) Modifier and TypeMethodDescriptionLifecycledResourceManagerImpl.findAllResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) NamespaceResourceManager.findAllResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) ReloadableResourceManagerImpl.findAllResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) ResourceFinder.findAllResources
(ResourceManager resourceManager) ResourceManager.Empty.findAllResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) ResourceManager.findAllResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) LifecycledResourceManagerImpl.findResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) Returns a sorted list of identifiers matching a path predicate.NamespaceResourceManager.findResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) Returns a sorted list of identifiers matching a path predicate.ReloadableResourceManagerImpl.findResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) Returns a sorted list of identifiers matching a path predicate.ResourceFinder.findResources
(ResourceManager resourceManager) ResourceManager.Empty.findResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) Returns a sorted list of identifiers matching a path predicate.ResourceManager.findResources
(String startingPath, Predicate<Identifier> allowedPathPredicate) Returns a sorted list of identifiers matching a path predicate.LifecycledResourceManagerImpl.getAllResources
(Identifier id) Gets all of the available resources to the corresponding resource identifier.NamespaceResourceManager.getAllResources
(Identifier id) Gets all of the available resources to the corresponding resource identifier.ReloadableResourceManagerImpl.getAllResources
(Identifier id) Gets all of the available resources to the corresponding resource identifier.ResourceManager.Empty.getAllResources
(Identifier id) Gets all of the available resources to the corresponding resource identifier.ResourceManager.getAllResources
(Identifier id) Gets all of the available resources to the corresponding resource identifier.LifecycledResourceManagerImpl.getResource
(Identifier id) Finds and returns the corresponding resource for a resource's identifier.NamespaceResourceManager.getResource
(Identifier id) Finds and returns the corresponding resource for a resource's identifier.ReloadableResourceManagerImpl.getResource
(Identifier id) Finds and returns the corresponding resource for a resource's identifier.ResourceFactory.getResource
(Identifier id) Finds and returns the corresponding resource for a resource's identifier.ResourceManager.Empty.getResource
(Identifier id) Finds and returns the corresponding resource for a resource's identifier.Modifier and TypeMethodDescriptionstatic ResourceFactory
ResourceFactory.fromMap
(Map<Identifier, Resource> map) -
Uses of Resource in net.minecraft.server.function