枚举 LootContext.EntityTarget
- java.lang.Object
-
- java.lang.Enum<LootContext.EntityTarget>
-
- net.minecraft.loot.context.LootContext.EntityTarget
-
- 所有已实现的接口:
Serializable,Comparable<LootContext.EntityTarget>
- 封闭类:
- LootContext
public static enum LootContext.EntityTarget extends Enum<LootContext.EntityTarget>
- Mappings:
Namespace Name official dhp$cintermediary net/minecraft/class_47$class_50named net/minecraft/loot/context/LootContext$EntityTarget
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classLootContext.EntityTarget.Serializer
-
枚举常量概要
枚举常量 枚举常量 说明 DIRECT_KILLERKILLERKILLER_PLAYERTHIS
-
字段概要
字段 修饰符和类型 字段 说明 private LootContextParameter<? extends Entity>parameterprivate Stringtype
-
构造器概要
构造器 限定符 构造器 说明 privateEntityTarget(String type, LootContextParameter<? extends Entity> parameter)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static LootContext.EntityTargetfromString(String type)LootContextParameter<? extends Entity>getParameter()static LootContext.EntityTargetvalueOf(String name)返回带有指定名称的该类型的枚举常量。static LootContext.EntityTarget[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
THIS
public static final LootContext.EntityTarget THIS
- Mappings:
Namespace Name Mixin selector official aLdhp$c;a:Ldhp$c;intermediary field_935Lnet/minecraft/class_47$class_50;field_935:Lnet/minecraft/class_47$class_50;named THISLnet/minecraft/loot/context/LootContext$EntityTarget;THIS:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
KILLER
public static final LootContext.EntityTarget KILLER
- Mappings:
Namespace Name Mixin selector official bLdhp$c;b:Ldhp$c;intermediary field_936Lnet/minecraft/class_47$class_50;field_936:Lnet/minecraft/class_47$class_50;named KILLERLnet/minecraft/loot/context/LootContext$EntityTarget;KILLER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
DIRECT_KILLER
public static final LootContext.EntityTarget DIRECT_KILLER
- Mappings:
Namespace Name Mixin selector official cLdhp$c;c:Ldhp$c;intermediary field_939Lnet/minecraft/class_47$class_50;field_939:Lnet/minecraft/class_47$class_50;named DIRECT_KILLERLnet/minecraft/loot/context/LootContext$EntityTarget;DIRECT_KILLER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
KILLER_PLAYER
public static final LootContext.EntityTarget KILLER_PLAYER
- Mappings:
Namespace Name Mixin selector official dLdhp$c;d:Ldhp$c;intermediary field_937Lnet/minecraft/class_47$class_50;field_937:Lnet/minecraft/class_47$class_50;named KILLER_PLAYERLnet/minecraft/loot/context/LootContext$EntityTarget;KILLER_PLAYER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
-
字段详细资料
-
type
private final String type
- Mappings:
Namespace Name Mixin selector official eLdhp$c;e:Ljava/lang/String;intermediary field_941Lnet/minecraft/class_47$class_50;field_941:Ljava/lang/String;named typeLnet/minecraft/loot/context/LootContext$EntityTarget;type:Ljava/lang/String;
-
parameter
private final LootContextParameter<? extends Entity> parameter
- Mappings:
Namespace Name Mixin selector official fLdhp$c;f:Ldjs;intermediary field_938Lnet/minecraft/class_47$class_50;field_938:Lnet/minecraft/class_169;named parameterLnet/minecraft/loot/context/LootContext$EntityTarget;parameter:Lnet/minecraft/loot/context/LootContextParameter;
-
-
构造器详细资料
-
EntityTarget
private EntityTarget(String type, LootContextParameter<? extends Entity> parameter)
- Mappings:
Namespace Name Mixin selector official <init>Ldhp$c;<init>(Ljava/lang/String;ILjava/lang/String;Ldjs;)Vintermediary <init>Lnet/minecraft/class_47$class_50;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)Vnamed <init>Lnet/minecraft/loot/context/LootContext$EntityTarget;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/loot/context/LootContextParameter;)V
-
-
方法详细资料
-
values
public static LootContext.EntityTarget[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (LootContext.EntityTarget c : LootContext.EntityTarget.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static LootContext.EntityTarget valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getParameter
public LootContextParameter<? extends Entity> getParameter()
- Mappings:
Namespace Name Mixin selector official aLdhp$c;a()Ldjs;intermediary method_315Lnet/minecraft/class_47$class_50;method_315()Lnet/minecraft/class_169;named getParameterLnet/minecraft/loot/context/LootContext$EntityTarget;getParameter()Lnet/minecraft/loot/context/LootContextParameter;
-
fromString
public static LootContext.EntityTarget fromString(String type)
- Mappings:
Namespace Name Mixin selector official aLdhp$c;a(Ljava/lang/String;)Ldhp$c;intermediary method_314Lnet/minecraft/class_47$class_50;method_314(Ljava/lang/String;)Lnet/minecraft/class_47$class_50;named fromStringLnet/minecraft/loot/context/LootContext$EntityTarget;fromString(Ljava/lang/String;)Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
-