Package net.minecraft.loot.context
Enum Class LootContext.EntityTarget
- All Implemented Interfaces:
Serializable,Comparable<LootContext.EntityTarget>,Constable
- Enclosing class:
LootContext
- Mappings:
Namespace Name intermediary net/minecraft/class_47$class_50official dzh$bnamed net/minecraft/loot/context/LootContext$EntityTarget
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LootContextParameter<? extends Entity>(package private) final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityTarget(String type, LootContextParameter<? extends Entity> parameter) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootContext.EntityTargetfromString(String type) LootContextParameter<? extends Entity>static LootContext.EntityTargetReturns the enum constant of this class with the specified name.static LootContext.EntityTarget[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THIS
- Mappings:
Namespace Name Mixin selector intermediary field_935Lnet/minecraft/class_47$class_50;field_935:Lnet/minecraft/class_47$class_50;official aLdzh$b;a:Ldzh$b;named THISLnet/minecraft/loot/context/LootContext$EntityTarget;THIS:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
KILLER
- Mappings:
Namespace Name Mixin selector intermediary field_936Lnet/minecraft/class_47$class_50;field_936:Lnet/minecraft/class_47$class_50;official bLdzh$b;b:Ldzh$b;named KILLERLnet/minecraft/loot/context/LootContext$EntityTarget;KILLER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
DIRECT_KILLER
- Mappings:
Namespace Name Mixin selector intermediary field_939Lnet/minecraft/class_47$class_50;field_939:Lnet/minecraft/class_47$class_50;official cLdzh$b;c:Ldzh$b;named DIRECT_KILLERLnet/minecraft/loot/context/LootContext$EntityTarget;DIRECT_KILLER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
KILLER_PLAYER
- Mappings:
Namespace Name Mixin selector intermediary field_937Lnet/minecraft/class_47$class_50;field_937:Lnet/minecraft/class_47$class_50;official dLdzh$b;d:Ldzh$b;named KILLER_PLAYERLnet/minecraft/loot/context/LootContext$EntityTarget;KILLER_PLAYER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector intermediary field_941Lnet/minecraft/class_47$class_50;field_941:Ljava/lang/String;official eLdzh$b;e:Ljava/lang/String;named typeLnet/minecraft/loot/context/LootContext$EntityTarget;type:Ljava/lang/String;
-
parameter
- Mappings:
Namespace Name Mixin selector intermediary field_938Lnet/minecraft/class_47$class_50;field_938:Lnet/minecraft/class_169;official fLdzh$b;f:Lebq;named parameterLnet/minecraft/loot/context/LootContext$EntityTarget;parameter:Lnet/minecraft/loot/context/LootContextParameter;
-
-
Constructor Details
-
EntityTarget
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_47$class_50;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)Vofficial <init>Ldzh$b;<init>(Ljava/lang/String;ILjava/lang/String;Lebq;)Vnamed <init>Lnet/minecraft/loot/context/LootContext$EntityTarget;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/loot/context/LootContextParameter;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getParameter
- Mappings:
Namespace Name Mixin selector intermediary method_315Lnet/minecraft/class_47$class_50;method_315()Lnet/minecraft/class_169;official aLdzh$b;a()Lebq;named getParameterLnet/minecraft/loot/context/LootContext$EntityTarget;getParameter()Lnet/minecraft/loot/context/LootContextParameter;
-
fromString
- Mappings:
Namespace Name Mixin selector intermediary method_314Lnet/minecraft/class_47$class_50;method_314(Ljava/lang/String;)Lnet/minecraft/class_47$class_50;official aLdzh$b;a(Ljava/lang/String;)Ldzh$b;named fromStringLnet/minecraft/loot/context/LootContext$EntityTarget;fromString(Ljava/lang/String;)Lnet/minecraft/loot/context/LootContext$EntityTarget;
-