Package net.minecraft.loot.context
Enum LootContext.EntityTarget
- All Implemented Interfaces:
Serializable,Comparable<LootContext.EntityTarget>,java.lang.constant.Constable
- Enclosing class:
- LootContext
public static enum LootContext.EntityTarget extends Enum<LootContext.EntityTarget>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLootContext.EntityTarget.SerializerNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description DIRECT_KILLERKILLERKILLER_PLAYERTHIS -
Field Summary
Fields Modifier and Type Field Description private LootContextParameter<? extends Entity>parameterprivate Stringtype -
Constructor Summary
Constructors Modifier Constructor Description privateEntityTarget(String type, LootContextParameter<? extends Entity> parameter) -
Method Summary
Modifier and Type Method Description static LootContext.EntityTargetfromString(String type)LootContextParameter<? extends Entity>getParameter()static LootContext.EntityTargetvalueOf(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.
-
Enum Constant Details
-
THIS
-
KILLER
-
DIRECT_KILLER
-
KILLER_PLAYER
-
-
Field Details
-
type
-
parameter
-
-
Constructor Details
-
EntityTarget
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getParameter
-
fromString
-