Package net.minecraft.resources
Class FileToIdConverter
java.lang.Object
net.minecraft.resources.FileToIdConverter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfileToId(ResourceLocation pFile) idToFile(ResourceLocation pId) static FileToIdConverterlistMatchingResources(ResourceManager pResourceManager) listMatchingResourcesFromNamespace(ResourceManager manager, String namespace) List all resources under the given namespace which match this converterlistMatchingResourceStacks(ResourceManager pResourceManager) listMatchingResourceStacksFromNamespace(ResourceManager manager, String namespace) List all resource stacks under the given namespace which match this converterstatic FileToIdConverterregistry(ResourceKey<? extends Registry<?>> pRegistryKey)
-
Field Details
-
prefix
-
extension
-
-
Constructor Details
-
FileToIdConverter
-
-
Method Details
-
json
-
registry
-
idToFile
-
fileToId
-
listMatchingResources
-
listMatchingResourceStacks
public Map<ResourceLocation,List<Resource>> listMatchingResourceStacks(ResourceManager pResourceManager) -
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
-