Class EnterBlockTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.EnterBlockTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- EnterBlockTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ContextAwarePredicate p_286269_, Block p_286517_, StatePropertiesPredicate p_286864_) -
Method Summary
Modifier and TypeMethodDescriptionentersBlock
(Block p_31298_) boolean
matches
(BlockState p_31300_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_31302_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
block
-
state
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(ContextAwarePredicate p_286269_, @Nullable Block p_286517_, StatePropertiesPredicate p_286864_)
-
-
Method Details
-
entersBlock
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-