net.minecraft.loot.context

public enum LootContext$EntityReference

implements StringIdentifiable, LootEntityValueSource$ContextBased<Entity>

net.minecraft.world.level.storage.loot.LootContext$EntityTarget
net.minecraft.class_47$class_50
net.minecraft.loot.context.LootContext$EntityReference

Enum constant summary

Enum Constant
THIS
field_935
THIS
ATTACKER
field_936
ATTACKER
DIRECT_ATTACKER
field_939
DIRECT_ATTACKER
ATTACKING_PLAYER
field_937
ATTACKING_PLAYER
TARGET_ENTITY
field_61495
TARGET_ENTITY
INTERACTING_ENTITY
field_61496
INTERACTING_ENTITY

Field summary

Modifier and TypeField
public static final StringIdentifiable$EnumCodec<LootContext$EntityReference>
CODEC
field_45792
CODEC
private final String
name
field_941
type
private final ContextParameter<? extends Entity>
param
field_938
parameter
private static final LootContext$EntityReference[]
$VALUES
field_940
field_940

Constructor summary

ModifierConstructor
private (String $enum$name, ContextParameter<? extends Entity> $enum$ordinal)

Method summary

Modifier and TypeMethod
public ContextParameter<? extends Entity>
contextParam()
comp_4920()
contextParam()
public static LootContext$EntityReference
getByName(String name)
method_314(String arg0)
fromString(String type)
public String
getSerializedName()
method_15434()
asString()
private static LootContext$EntityReference[]
$values()
method_36793()
method_36793()