Package net.minecraft.resource
Enum ResourceManager.Empty
- All Implemented Interfaces:
Serializable,Comparable<ResourceManager.Empty>,java.lang.constant.Constable,ResourceManager
- Enclosing interface:
- ResourceManager
public static enum ResourceManager.Empty extends Enum<ResourceManager.Empty> implements ResourceManager
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceManager
ResourceManager.Empty -
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE -
Constructor Summary
Constructors Modifier Constructor Description privateEmpty() -
Method Summary
Modifier and Type Method Description booleancontainsResource(Identifier id)Collection<Identifier>findResources(String resourceType, Predicate<String> pathPredicate)Set<String>getAllNamespaces()List<Resource>getAllResources(Identifier id)ResourcegetResource(Identifier id)Stream<ResourcePack>streamResourcePacks()static ResourceManager.EmptyvalueOf(String name)Returns the enum constant of this type with the specified name.static ResourceManager.Empty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
Empty
private Empty()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getAllNamespaces
- Specified by:
getAllNamespacesin interfaceResourceManager
-
getResource
- Specified by:
getResourcein interfaceResourceManager- Throws:
IOException
-
containsResource
- Specified by:
containsResourcein interfaceResourceManager
-
getAllResources
- Specified by:
getAllResourcesin interfaceResourceManager
-
findResources
- Specified by:
findResourcesin interfaceResourceManager
-
streamResourcePacks
- Specified by:
streamResourcePacksin interfaceResourceManager
-