public static enum LootContext.EntityTarget extends java.lang.Enum<LootContext.EntityTarget>
修飾子とタイプ | クラスと説明 |
---|---|
static class |
LootContext.EntityTarget.Serializer |
列挙型定数と説明 |
---|
DIRECT_KILLER |
KILLER |
KILLER_PLAYER |
THIS |
修飾子とタイプ | メソッドと説明 |
---|---|
static LootContext.EntityTarget |
fromString(java.lang.String type) |
LootParameter<? extends Entity> |
getParameter() |
static LootContext.EntityTarget |
valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static LootContext.EntityTarget[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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
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
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合public LootParameter<? extends Entity> getParameter()
public static LootContext.EntityTarget fromString(java.lang.String type)