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 ContextAwarePredicate
private final MinMaxBounds.Ints
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ContextAwarePredicate p_286385_, MinMaxBounds.Ints p_286505_, ContextAwarePredicate p_286608_) -
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_286700_, ContextAwarePredicate p_286883_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
signalStrength
-
projectile
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(ContextAwarePredicate p_286385_, MinMaxBounds.Ints p_286505_, ContextAwarePredicate p_286608_)
-
-
Method Details
-
targetHit
public static TargetBlockTrigger.TriggerInstance targetHit(MinMaxBounds.Ints p_286700_, ContextAwarePredicate p_286883_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-