Package net.minecraft.resources
Enum Class IResourceManager.Instance
- All Implemented Interfaces:
Serializable
,Comparable<IResourceManager.Instance>
,Constable
,IResourceManager
- Enclosing interface:
- IResourceManager
public static enum IResourceManager.Instance
extends Enum<IResourceManager.Instance>
implements IResourceManager
-
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.resources.IResourceManager
IResourceManager.Instance
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetResource
(ResourceLocation p_199002_1_) getResources
(ResourceLocation p_199004_1_) boolean
hasResource
(ResourceLocation p_219533_1_) listResources
(String p_199003_1_, Predicate<String> p_199003_2_) static IResourceManager.Instance
Returns the enum constant of this class with the specified name.static IResourceManager.Instance[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
Instance
private Instance()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- 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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNamespaces
- Specified by:
getNamespaces
in interfaceIResourceManager
-
getResource
- Specified by:
getResource
in interfaceIResourceManager
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceIResourceManager
-
getResources
- Specified by:
getResources
in interfaceIResourceManager
-
listResources
public Collection<ResourceLocation> listResources(String p_199003_1_, Predicate<String> p_199003_2_) - Specified by:
listResources
in interfaceIResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceIResourceManager
-