Package net.minecraft.loot.context
Enum Class LootContext.EntityTarget
- All Implemented Interfaces:
Serializable,Comparable<LootContext.EntityTarget>,Constable,StringIdentifiable
- Enclosing class:
LootContext
public static enum LootContext.EntityTarget
extends Enum<LootContext.EntityTarget>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/loot/context/LootContext$EntityTargetintermediary net/minecraft/class_47$class_50official err$b
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec<LootContext.EntityTarget> private final LootContextParameter<? extends Entity> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityTarget(String type, LootContextParameter<? extends Entity> parameter) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static 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 named THISLnet/minecraft/loot/context/LootContext$EntityTarget;THIS:Lnet/minecraft/loot/context/LootContext$EntityTarget;intermediary field_935Lnet/minecraft/class_47$class_50;field_935:Lnet/minecraft/class_47$class_50;official aLerr$b;a:Lerr$b;
-
ATTACKER
- Mappings:
Namespace Name Mixin selector named ATTACKERLnet/minecraft/loot/context/LootContext$EntityTarget;ATTACKER:Lnet/minecraft/loot/context/LootContext$EntityTarget;intermediary field_936Lnet/minecraft/class_47$class_50;field_936:Lnet/minecraft/class_47$class_50;official bLerr$b;b:Lerr$b;
-
DIRECT_ATTACKER
- Mappings:
Namespace Name Mixin selector named DIRECT_ATTACKERLnet/minecraft/loot/context/LootContext$EntityTarget;DIRECT_ATTACKER:Lnet/minecraft/loot/context/LootContext$EntityTarget;intermediary field_939Lnet/minecraft/class_47$class_50;field_939:Lnet/minecraft/class_47$class_50;official cLerr$b;c:Lerr$b;
-
ATTACKING_PLAYER
- Mappings:
Namespace Name Mixin selector named ATTACKING_PLAYERLnet/minecraft/loot/context/LootContext$EntityTarget;ATTACKING_PLAYER:Lnet/minecraft/loot/context/LootContext$EntityTarget;intermediary field_937Lnet/minecraft/class_47$class_50;field_937:Lnet/minecraft/class_47$class_50;official dLerr$b;d:Lerr$b;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/loot/context/LootContext$EntityTarget;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;intermediary field_45792Lnet/minecraft/class_47$class_50;field_45792:Lnet/minecraft/class_3542$class_7292;official eLerr$b;e:Lazk$a;
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/loot/context/LootContext$EntityTarget;type:Ljava/lang/String;intermediary field_941Lnet/minecraft/class_47$class_50;field_941:Ljava/lang/String;official fLerr$b;f:Ljava/lang/String;
-
parameter
- Mappings:
Namespace Name Mixin selector named parameterLnet/minecraft/loot/context/LootContext$EntityTarget;parameter:Lnet/minecraft/loot/context/LootContextParameter;intermediary field_938Lnet/minecraft/class_47$class_50;field_938:Lnet/minecraft/class_169;official gLerr$b;g:Leuk;
-
-
Constructor Details
-
EntityTarget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/loot/context/LootContext$EntityTarget;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/loot/context/LootContextParameter;)Vintermediary <init>Lnet/minecraft/class_47$class_50;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)Vofficial <init>Lerr$b;<init>(Ljava/lang/String;ILjava/lang/String;Leuk;)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 named getParameterLnet/minecraft/loot/context/LootContext$EntityTarget;getParameter()Lnet/minecraft/loot/context/LootContextParameter;intermediary method_315Lnet/minecraft/class_47$class_50;method_315()Lnet/minecraft/class_169;official aLerr$b;a()Leuk;
-
fromString
- Mappings:
Namespace Name Mixin selector named fromStringLnet/minecraft/loot/context/LootContext$EntityTarget;fromString(Ljava/lang/String;)Lnet/minecraft/loot/context/LootContext$EntityTarget;intermediary method_314Lnet/minecraft/class_47$class_50;method_314(Ljava/lang/String;)Lnet/minecraft/class_47$class_50;official aLerr$b;a(Ljava/lang/String;)Lerr$b;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLazk;c()Ljava/lang/String;
-