类 FileToIdConverter
java.lang.Object
net.minecraft.resources.FileToIdConverter
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明fileToId
(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 converterstatic FileToIdConverter
registry
(ResourceKey<? extends Registry<?>> p_387510_)
-
字段详细资料
-
prefix
-
extension
-
-
构造器详细资料
-
FileToIdConverter
-
-
方法详细资料
-
json
-
registry
-
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- 参数:
manager
- The resource manager to collect the resources fromnamespace
- The namespace to search under- 返回:
- 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- 参数:
manager
- The resource manager to collect the resources fromnamespace
- The namespace to search under- 返回:
- All resource stacks from the given namespace which match this converter
-