Package net.minecraft.resources
Enum IResourceManager.Instance
- java.lang.Object
-
- java.lang.Enum<IResourceManager.Instance>
-
- net.minecraft.resources.IResourceManager.Instance
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IResourceManager.Instance>
,IResourceManager
- Enclosing interface:
- IResourceManager
public static enum IResourceManager.Instance extends java.lang.Enum<IResourceManager.Instance> implements IResourceManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IResourceManager
IResourceManager.Instance
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
Instance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getNamespaces()
IResource
getResource(ResourceLocation p_199002_1_)
java.util.List<IResource>
getResources(ResourceLocation p_199004_1_)
boolean
hasResource(ResourceLocation p_219533_1_)
java.util.stream.Stream<IResourcePack>
listPacks()
java.util.Collection<ResourceLocation>
listResources(java.lang.String p_199003_1_, java.util.function.Predicate<java.lang.String> p_199003_2_)
static IResourceManager.Instance
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IResourceManager.Instance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final IResourceManager.Instance INSTANCE
-
-
Method Detail
-
values
public static IResourceManager.Instance[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IResourceManager.Instance c : IResourceManager.Instance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IResourceManager.Instance valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNamespaces
public java.util.Set<java.lang.String> getNamespaces()
- Specified by:
getNamespaces
in interfaceIResourceManager
-
getResource
public IResource getResource(ResourceLocation p_199002_1_) throws java.io.IOException
- Specified by:
getResource
in interfaceIResourceManager
- Throws:
java.io.IOException
-
hasResource
public boolean hasResource(ResourceLocation p_219533_1_)
- Specified by:
hasResource
in interfaceIResourceManager
-
getResources
public java.util.List<IResource> getResources(ResourceLocation p_199004_1_)
- Specified by:
getResources
in interfaceIResourceManager
-
listResources
public java.util.Collection<ResourceLocation> listResources(java.lang.String p_199003_1_, java.util.function.Predicate<java.lang.String> p_199003_2_)
- Specified by:
listResources
in interfaceIResourceManager
-
listPacks
public java.util.stream.Stream<IResourcePack> listPacks()
- Specified by:
listPacks
in interfaceIResourceManager
-
-