Enum Class ResourceManager.Empty
- 所有已实现的接口:
Serializable
,Comparable<ResourceManager.Empty>
,Constable
,ResourceManager
,ResourceProvider
- 封闭接口:
- ResourceManager
public static enum ResourceManager.Empty
extends Enum<ResourceManager.Empty>
implements ResourceManager
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.ResourceManager
ResourceManager.Empty
-
枚举常量概要
枚举常量 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getResource
(ResourceLocation p_215576_) getResourceStack
(ResourceLocation p_215568_) listResources
(String p_215570_, Predicate<ResourceLocation> p_215571_) listResourceStacks
(String p_215573_, Predicate<ResourceLocation> p_215574_) static ResourceManager.Empty
Returns the enum constant of this class with the specified name.static ResourceManager.Empty[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.从类继承的方法 java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
从接口继承的方法 net.minecraft.server.packs.resources.ResourceProvider
getResourceOrThrow, open, openAsReader
-
枚举常量详细资料
-
INSTANCE
-
-
构造器详细资料
-
Empty
private Empty()
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值
-
getNamespaces
- 指定者:
getNamespaces
在接口中ResourceManager
-
getResource
- 指定者:
getResource
在接口中ResourceProvider
-
getResourceStack
- 指定者:
getResourceStack
在接口中ResourceManager
-
listResources
public Map<ResourceLocation,Resource> listResources(String p_215570_, Predicate<ResourceLocation> p_215571_) - 指定者:
listResources
在接口中ResourceManager
-
listResourceStacks
public Map<ResourceLocation,List<Resource>> listResourceStacks(String p_215573_, Predicate<ResourceLocation> p_215574_) - 指定者:
listResourceStacks
在接口中ResourceManager
-
listPacks
- 指定者:
listPacks
在接口中ResourceManager
-