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(EntityPredicate.Composite p_31294_, Block p_31295_, StatePropertiesPredicate p_31296_)
-
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(EntityPredicate.Composite p_31294_, @Nullable Block p_31295_, StatePropertiesPredicate p_31296_)
-
-
Method Details
-
entersBlock
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-