Class TargetHitTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.TargetHitTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- TargetHitTrigger
public static class TargetHitTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.AndPredicate
projectile
private MinMaxBounds.IntBound
signalStrength
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231990_1_, MinMaxBounds.IntBound p_i231990_2_, EntityPredicate.AndPredicate p_i231990_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(LootContext p_236355_1_, Vector3d p_236355_2_, int p_236355_3_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
static TargetHitTrigger.Instance
targetHit(MinMaxBounds.IntBound p_236354_0_, EntityPredicate.AndPredicate p_236354_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
signalStrength
private final MinMaxBounds.IntBound signalStrength
-
projectile
private final EntityPredicate.AndPredicate projectile
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231990_1_, MinMaxBounds.IntBound p_i231990_2_, EntityPredicate.AndPredicate p_i231990_3_)
-
-
Method Detail
-
targetHit
public static TargetHitTrigger.Instance targetHit(MinMaxBounds.IntBound p_236354_0_, EntityPredicate.AndPredicate p_236354_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
matches
public boolean matches(LootContext p_236355_1_, Vector3d p_236355_2_, int p_236355_3_)
-
-