Package net.minecraft.resources
Class FileToIdConverter
java.lang.Object
net.minecraft.resources.FileToIdConverter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfileToId
(ResourceLocation p_249595_) idToFile
(ResourceLocation p_251878_) static FileToIdConverter
listMatchingResources
(ResourceManager p_252045_) listMatchingResourcesFromNamespace
(ResourceManager manager, String namespace) List all resources under the given namespace which match this converterlistMatchingResourceStacks
(ResourceManager p_249881_) listMatchingResourceStacksFromNamespace
(ResourceManager manager, String namespace) List all resource stacks under the given namespace which match this converter
-
Field Details
-
prefix
-
extension
-
-
Constructor Details
-
FileToIdConverter
-
-
Method Details
-
json
-
idToFile
-
fileToId
-
listMatchingResources
-
listMatchingResourceStacks
-
listMatchingResourcesFromNamespace
public Map<ResourceLocation,Resource> listMatchingResourcesFromNamespace(ResourceManager manager, String namespace) List all resources under the given namespace which match this converter- Parameters:
manager
- The resource manager to collect the resources fromnamespace
- The namespace to search under- Returns:
- All resources from the given namespace which match this converter
-
listMatchingResourceStacksFromNamespace
public Map<ResourceLocation,List<Resource>> listMatchingResourceStacksFromNamespace(ResourceManager manager, String namespace) List all resource stacks under the given namespace which match this converter- Parameters:
manager
- The resource manager to collect the resources fromnamespace
- The namespace to search under- Returns:
- All resource stacks from the given namespace which match this converter
-