Uses of Class
net.minecraft.server.packs.resources.Resource
Packages that use Resource
Package
Description
-
Uses of Resource in net.minecraft.client.gui.font
Method parameters in net.minecraft.client.gui.font with type arguments of type ResourceModifier and TypeMethodDescriptionprivate static List
<com.mojang.datafixers.util.Pair<FontManager.BuilderId, GlyphProviderDefinition.Conditional>> FontManager.loadResourceStack
(List<Resource> resources, ResourceLocation fontId) -
Uses of Resource in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type ResourceModifier and TypeMethodDescriptionprivate Optional
<List<ResourceLocation>> ParticleEngine.loadParticleDescription
(ResourceLocation registryName, Resource resource) -
Uses of Resource in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer with type parameters of type ResourceModifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, Resource> GameRenderer.ResourceCache.cache
The field for thecache
record component.Methods in net.minecraft.client.renderer that return types with arguments of type ResourceModifier and TypeMethodDescriptionGameRenderer.ResourceCache.cache()
Returns the value of thecache
record component.GameRenderer.ResourceCache.getResource
(ResourceLocation p_251007_) Constructor parameters in net.minecraft.client.renderer with type arguments of type ResourceModifierConstructorDescriptionResourceCache
(ResourceProvider original, Map<ResourceLocation, Resource> cache) Creates an instance of aResourceCache
record class. -
Uses of Resource in net.minecraft.client.renderer.texture.atlas
Methods in net.minecraft.client.renderer.texture.atlas with parameters of type ResourceModifier and TypeMethodDescriptiondefault void
SpriteSource.Output.add
(ResourceLocation location, Resource resource) default SpriteContents
SpriteResourceLoader.loadSprite
(ResourceLocation location, Resource resource) SpriteResourceLoader.loadSprite
(ResourceLocation location, Resource resource, SpriteContentsConstructor constructor) -
Uses of Resource in net.minecraft.client.renderer.texture.atlas.sources
Fields in net.minecraft.client.renderer.texture.atlas.sources declared as ResourceConstructors in net.minecraft.client.renderer.texture.atlas.sources with parameters of type ResourceModifierConstructorDescriptionLazyLoadedImage
(ResourceLocation id, Resource resource, int referenceCount) -
Uses of Resource in net.minecraft.client.resources.language
Method parameters in net.minecraft.client.resources.language with type arguments of type ResourceModifier and TypeMethodDescriptionprivate static void
ClientLanguage.appendFrom
(String languageName, List<Resource> resources, Map<String, String> destinationMap) Deprecated.private static void
ClientLanguage.appendFrom
(String languageName, List<Resource> resources, Map<String, String> destinationMap, Map<String, Component> componentMap) -
Uses of Resource in net.minecraft.client.sounds
Fields in net.minecraft.client.sounds with type parameters of type ResourceModifier and TypeFieldDescriptionprivate Map
<ResourceLocation, Resource> SoundManager.Preparations.soundCache
private final Map
<ResourceLocation, Resource> SoundManager.soundCache
-
Uses of Resource in net.minecraft.resources
Methods in net.minecraft.resources that return types with arguments of type ResourceModifier and TypeMethodDescriptionFileToIdConverter.listMatchingResources
(ResourceManager resourceManager) FileToIdConverter.listMatchingResourcesFromNamespace
(ResourceManager manager, String namespace) List all resources under the given namespace which match this converterFileToIdConverter.listMatchingResourceStacks
(ResourceManager resourceManager) FileToIdConverter.listMatchingResourceStacksFromNamespace
(ResourceManager manager, String namespace) List all resource stacks under the given namespace which match this converterMethods in net.minecraft.resources with parameters of type ResourceModifier and TypeMethodDescriptionprivate static <E> void
RegistryDataLoader.loadElementFromResource
(WritableRegistry<E> registry, com.mojang.serialization.Decoder<E> codec, RegistryOps<com.google.gson.JsonElement> ops, ResourceKey<E> resourceKey, Resource resource, RegistrationInfo registrationInfo) -
Uses of Resource in net.minecraft.server
Methods in net.minecraft.server with parameters of type Resource -
Uses of Resource in net.minecraft.server.packs.resources
Methods in net.minecraft.server.packs.resources that return ResourceModifier and TypeMethodDescriptionprivate static Resource
FallbackResourceManager.createResource
(PackResources source, ResourceLocation location, IoSupplier<InputStream> streamSupplier, IoSupplier<ResourceMetadata> metadataSupplier) default Resource
ResourceProvider.getResourceOrThrow
(ResourceLocation location) Methods in net.minecraft.server.packs.resources that return types with arguments of type ResourceModifier and TypeMethodDescriptionFallbackResourceManager.getResource
(ResourceLocation location) MultiPackResourceManager.getResource
(ResourceLocation location) ReloadableResourceManager.getResource
(ResourceLocation location) ResourceManager.Empty.getResource
(ResourceLocation p_215576_) ResourceProvider.getResource
(ResourceLocation location) FallbackResourceManager.getResourceStack
(ResourceLocation location) MultiPackResourceManager.getResourceStack
(ResourceLocation location) ReloadableResourceManager.getResourceStack
(ResourceLocation location) ResourceManager.Empty.getResourceStack
(ResourceLocation p_215568_) ResourceManager.getResourceStack
(ResourceLocation location) FallbackResourceManager.listResources
(String path, Predicate<ResourceLocation> filter) MultiPackResourceManager.listResources
(String path, Predicate<ResourceLocation> filter) ReloadableResourceManager.listResources
(String path, Predicate<ResourceLocation> filter) ResourceManager.Empty.listResources
(String p_215570_, Predicate<ResourceLocation> p_215571_) ResourceManager.listResources
(String path, Predicate<ResourceLocation> filter) FallbackResourceManager.listResourceStacks
(String path, Predicate<ResourceLocation> filter) MultiPackResourceManager.listResourceStacks
(String path, Predicate<ResourceLocation> filter) ReloadableResourceManager.listResourceStacks
(String path, Predicate<ResourceLocation> filter) ResourceManager.Empty.listResourceStacks
(String p_215573_, Predicate<ResourceLocation> p_215574_) ResourceManager.listResourceStacks
(String path, Predicate<ResourceLocation> filter) Method parameters in net.minecraft.server.packs.resources with type arguments of type ResourceModifier and TypeMethodDescriptionstatic ResourceProvider
ResourceProvider.fromMap
(Map<ResourceLocation, Resource> resources) -
Uses of Resource in net.neoforged.neoforge.common.data
Methods in net.neoforged.neoforge.common.data that return ResourceModifier and TypeMethodDescriptionExistingFileHelper.getResource
(ResourceLocation loc, PackType packType) ExistingFileHelper.getResource
(ResourceLocation loc, PackType packType, String pathSuffix, String pathPrefix) Methods in net.neoforged.neoforge.common.data that return types with arguments of type ResourceModifier and TypeMethodDescriptionExistingFileHelper.getResourceStack
(ResourceLocation loc, PackType packType) -
Uses of Resource in net.neoforged.neoforge.registries
Method parameters in net.neoforged.neoforge.registries with type arguments of type ResourceModifier and TypeMethodDescriptionprivate static <A,
T> List <DataMapFile<A, T>> DataMapLoader.readData
(RegistryOps<com.google.gson.JsonElement> ops, DataMapType<T, A> attachmentType, ResourceKey<Registry<T>> registryKey, List<Resource> resources)