public static enum LootContext.EntityTarget extends java.lang.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 LootParameter<? extends Entity> |
parameter |
private java.lang.String |
targetType |
Modifier and Type | Method and Description |
---|---|
static LootContext.EntityTarget |
fromString(java.lang.String type) |
LootParameter<? extends Entity> |
getParameter() |
static LootContext.EntityTarget |
valueOf(java.lang.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 java.lang.String targetType
private final LootParameter<? extends Entity> parameter
public static LootContext.EntityTarget[] values()
for (LootContext.EntityTarget c : LootContext.EntityTarget.values()) System.out.println(c);
public static LootContext.EntityTarget valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic LootParameter<? extends Entity> getParameter()
public static LootContext.EntityTarget fromString(java.lang.String type)