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