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