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> pResources, ResourceLocation pFontId) -
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 pRegistryName, Resource pResource) -
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 pLocation, Resource pResource) default SpriteContents
SpriteResourceLoader.loadSprite
(ResourceLocation pLocation, Resource pResource) SpriteResourceLoader.loadSprite
(ResourceLocation pLocation, Resource pResource, 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 pId, Resource pResource, int pReferenceCount) -
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 pLanguageName, List<Resource> pResources, Map<String, String> pDestinationMap) Deprecated.private static void
ClientLanguage.appendFrom
(String pLanguageName, List<Resource> pResources, Map<String, String> pDestinationMap, 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 pResourceManager) FileToIdConverter.listMatchingResourcesFromNamespace
(ResourceManager manager, String namespace) List all resources under the given namespace which match this converterFileToIdConverter.listMatchingResourceStacks
(ResourceManager pResourceManager) 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> p_326195_, com.mojang.serialization.Decoder<E> p_326476_, RegistryOps<com.google.gson.JsonElement> p_325932_, ResourceKey<E> p_326054_, Resource p_326141_, RegistrationInfo p_326033_) -
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 pSource, ResourceLocation pLocation, IoSupplier<InputStream> pStreamSupplier, IoSupplier<ResourceMetadata> pMetadataSupplier) default Resource
ResourceProvider.getResourceOrThrow
(ResourceLocation pLocation) Methods in net.minecraft.server.packs.resources that return types with arguments of type ResourceModifier and TypeMethodDescriptionFallbackResourceManager.getResource
(ResourceLocation pLocation) MultiPackResourceManager.getResource
(ResourceLocation pLocation) ReloadableResourceManager.getResource
(ResourceLocation pLocation) ResourceManager.Empty.getResource
(ResourceLocation p_215576_) ResourceProvider.getResource
(ResourceLocation pLocation) FallbackResourceManager.getResourceStack
(ResourceLocation pLocation) MultiPackResourceManager.getResourceStack
(ResourceLocation pLocation) ReloadableResourceManager.getResourceStack
(ResourceLocation pLocation) ResourceManager.Empty.getResourceStack
(ResourceLocation p_215568_) ResourceManager.getResourceStack
(ResourceLocation pLocation) FallbackResourceManager.listResources
(String pPath, Predicate<ResourceLocation> pFilter) MultiPackResourceManager.listResources
(String pPath, Predicate<ResourceLocation> pFilter) ReloadableResourceManager.listResources
(String pPath, Predicate<ResourceLocation> pFilter) ResourceManager.Empty.listResources
(String p_215570_, Predicate<ResourceLocation> p_215571_) ResourceManager.listResources
(String pPath, Predicate<ResourceLocation> pFilter) FallbackResourceManager.listResourceStacks
(String pPath, Predicate<ResourceLocation> pFilter) MultiPackResourceManager.listResourceStacks
(String pPath, Predicate<ResourceLocation> pFilter) ReloadableResourceManager.listResourceStacks
(String pPath, Predicate<ResourceLocation> pFilter) ResourceManager.Empty.listResourceStacks
(String p_215573_, Predicate<ResourceLocation> p_215574_) ResourceManager.listResourceStacks
(String pPath, Predicate<ResourceLocation> pFilter) Method parameters in net.minecraft.server.packs.resources with type arguments of type ResourceModifier and TypeMethodDescriptionstatic ResourceProvider
ResourceProvider.fromMap
(Map<ResourceLocation, Resource> pResources) -
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)