Class TargetHitTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.TargetHitTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- TargetHitTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityPredicate.AndPredicate
private final MinMaxBounds.IntBound
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i231990_1_, MinMaxBounds.IntBound p_i231990_2_, EntityPredicate.AndPredicate p_i231990_3_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Details
-
signalStrength
-
projectile
-
-
Constructor Details
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231990_1_, MinMaxBounds.IntBound p_i231990_2_, EntityPredicate.AndPredicate p_i231990_3_)
-
-
Method Details
-
targetHit
public static TargetHitTrigger.Instance targetHit(MinMaxBounds.IntBound p_236354_0_, EntityPredicate.AndPredicate p_236354_1_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
matches
-