Class TargetBlockTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.TargetBlockTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
TargetBlockTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ContextAwarePredicate>
private final MinMaxBounds.Ints
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_299077_, MinMaxBounds.Ints p_286505_, Optional<ContextAwarePredicate> p_299328_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(LootContext p_70242_, Vec3 p_70243_, int p_70244_) com.google.gson.JsonObject
targetHit
(MinMaxBounds.Ints p_286700_, Optional<ContextAwarePredicate> p_298563_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
signalStrength
-
projectile
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_299077_, MinMaxBounds.Ints p_286505_, Optional<ContextAwarePredicate> p_299328_)
-
-
Method Details
-
targetHit
public static Criterion<TargetBlockTrigger.TriggerInstance> targetHit(MinMaxBounds.Ints p_286700_, Optional<ContextAwarePredicate> p_298563_) -
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-