Class TargetBlockTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.TargetBlockTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- TargetBlockTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityPredicate.Composite
private final MinMaxBounds.Ints
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(EntityPredicate.Composite p_70233_, MinMaxBounds.Ints p_70234_, EntityPredicate.Composite p_70235_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(LootContext p_70242_, Vec3 p_70243_, int p_70244_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_70240_) targetHit
(MinMaxBounds.Ints p_70237_, EntityPredicate.Composite p_70238_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
signalStrength
-
projectile
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_70233_, MinMaxBounds.Ints p_70234_, EntityPredicate.Composite p_70235_)
-
-
Method Details
-
targetHit
public static TargetBlockTrigger.TriggerInstance targetHit(MinMaxBounds.Ints p_70237_, EntityPredicate.Composite p_70238_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-