public static enum ResourceManager.Empty extends Enum<ResourceManager.Empty> implements ResourceManager
ResourceManager.Empty
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
containsResource(Identifier id) |
Collection<Identifier> |
findResources(String resourceType,
Predicate<String> pathPredicate) |
Set<String> |
getAllNamespaces() |
List<Resource> |
getAllResources(Identifier id) |
Resource |
getResource(Identifier id) |
Stream<ResourcePack> |
streamResourcePacks() |
static ResourceManager.Empty |
valueOf(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.
|
public static final ResourceManager.Empty INSTANCE
public static ResourceManager.Empty[] values()
for (ResourceManager.Empty c : ResourceManager.Empty.values()) System.out.println(c);
public static ResourceManager.Empty valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Environment(value=CLIENT) public Set<String> getAllNamespaces()
getAllNamespaces
in interface ResourceManager
public Resource getResource(Identifier id) throws IOException
getResource
in interface ResourceManager
IOException
@Environment(value=CLIENT) public boolean containsResource(Identifier id)
containsResource
in interface ResourceManager
public List<Resource> getAllResources(Identifier id)
getAllResources
in interface ResourceManager
public Collection<Identifier> findResources(String resourceType, Predicate<String> pathPredicate)
findResources
in interface ResourceManager
@Environment(value=CLIENT) public Stream<ResourcePack> streamResourcePacks()
streamResourcePacks
in interface ResourceManager