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.particle
Modifier and TypeMethodDescriptionprivate Optional<List<Identifier>>
ParticleManager.loadTextureList
(Identifier id, Resource resource) -
Uses of Resource in net.minecraft.client.render
Modifier and TypeFieldDescriptionprivate final Map<Identifier,
Resource> GameRenderer.CachedResourceFactory.cache
The field for thecache
record component.Modifier and TypeMethodDescriptionGameRenderer.CachedResourceFactory.cache()
Returns the value of thecache
record component.GameRenderer.CachedResourceFactory.getResource
(Identifier id) Finds and returns the corresponding resource for a resource's identifier.ModifierConstructorDescriptionCachedResourceFactory
(ResourceFactory resourceFactory, Map<Identifier, Resource> map) -
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
Modifier and TypeMethodDescriptionstatic @Nullable SpriteContents
SpriteLoader.load
(Identifier id, Resource resource) -
Uses of Resource in net.minecraft.client.texture.atlas
Modifier and TypeMethodDescriptiondefault void
AtlasSource.SpriteRegions.add
(Identifier id, Resource resource) ModifierConstructorDescription(package private)
Sprite
(Identifier id, Resource resource, int regionCount) -
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