public static enum CopyNameLootFunction.Source extends Enum<CopyNameLootFunction.Source>
Enum Constant and Description |
---|
BLOCK_ENTITY |
KILLER |
KILLER_PLAYER |
THIS |
Modifier and Type | Field and Description |
---|---|
String |
name |
LootContextParameter<?> |
parameter |
Modifier and Type | Method and Description |
---|---|
static CopyNameLootFunction.Source |
get(String name) |
static CopyNameLootFunction.Source |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CopyNameLootFunction.Source[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CopyNameLootFunction.Source THIS
public static final CopyNameLootFunction.Source KILLER
public static final CopyNameLootFunction.Source KILLER_PLAYER
public static final CopyNameLootFunction.Source BLOCK_ENTITY
public final String name
public final LootContextParameter<?> parameter
public static CopyNameLootFunction.Source[] values()
for (CopyNameLootFunction.Source c : CopyNameLootFunction.Source.values()) System.out.println(c);
public static CopyNameLootFunction.Source 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 nullpublic static CopyNameLootFunction.Source get(String name)