Package net.minecraft.command
Enum Class CommandRegistryAccess.EntryListCreationPolicy
java.lang.Object
java.lang.Enum<CommandRegistryAccess.EntryListCreationPolicy>
net.minecraft.command.CommandRegistryAccess.EntryListCreationPolicy
- All Implemented Interfaces:
Serializable,Comparable<CommandRegistryAccess.EntryListCreationPolicy>,Constable
- Enclosing class:
CommandRegistryAccess
public static enum CommandRegistryAccess.EntryListCreationPolicy
extends Enum<CommandRegistryAccess.EntryListCreationPolicy>
A policy on how to handle a
that does not resolve to an existing
tag (unrecognized tag) in
invalid @link
TagKey
CommandRegistryWrapper.getEntryList(net.minecraft.tag.TagKey<T>).- Mappings:
Namespace Name official dl$aintermediary net/minecraft/class_7157$class_7158named net/minecraft/command/CommandRegistryAccess$EntryListCreationPolicy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreates a new, stores it and returns it.invalid @link
RegistryEntryListReturns}.invalid @link
{@link Optional.empty()Returns a new, emptyevery time.invalid @link
RegistryEntryList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE_NEW
Creates a new, stores it and returns it.invalid @link
RegistryEntryList- Mappings:
Namespace Name Mixin selector official aLdl$a;a:Ldl$a;intermediary field_37824Lnet/minecraft/class_7157$class_7158;field_37824:Lnet/minecraft/class_7157$class_7158;named CREATE_NEWLnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicy;CREATE_NEW:Lnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicy;
-
RETURN_EMPTY
Returns a new, emptyevery time.invalid @link
RegistryEntryList- Mappings:
Namespace Name Mixin selector official bLdl$a;b:Ldl$a;intermediary field_37825Lnet/minecraft/class_7157$class_7158;field_37825:Lnet/minecraft/class_7157$class_7158;named RETURN_EMPTYLnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicy;RETURN_EMPTY:Lnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicy;
-
FAIL
Returns}.invalid @link
{@link Optional.empty()- Mappings:
Namespace Name Mixin selector official cLdl$a;c:Ldl$a;intermediary field_37826Lnet/minecraft/class_7157$class_7158;field_37826:Lnet/minecraft/class_7157$class_7158;named FAILLnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicy;FAIL:Lnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicy;
-
-
Constructor Details
-
EntryListCreationPolicy
private EntryListCreationPolicy()
-
-
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
-