public class TargetHitCriterion extends AbstractCriterion<TargetHitCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
TargetHitCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private static Identifier |
ID |
Constructor and Description |
---|
TargetHitCriterion() |
Modifier and Type | Method and Description |
---|---|
TargetHitCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext) |
Identifier |
getId() |
void |
trigger(ServerPlayerEntity player,
Entity entity,
Vec3d vec3d,
int int2) |
beginTrackingCondition, endTracking, endTrackingCondition, grant, test
private static final Identifier ID
public Identifier getId()
public TargetHitCriterion.Conditions conditionsFromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)
public void trigger(ServerPlayerEntity player, Entity entity, Vec3d vec3d, int int2)