Class EnterBlockTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.EnterBlockTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- EnterBlockTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Block
private final Optional<StatePropertiesPredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_300383_, Block p_286517_, Optional<StatePropertiesPredicate> p_299345_) -
Method Summary
Modifier and TypeMethodDescriptionentersBlock
(Block p_31298_) boolean
matches
(BlockState p_31300_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
block
-
state
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_300383_, @Nullable Block p_286517_, Optional<StatePropertiesPredicate> p_299345_)
-
-
Method Details
-
entersBlock
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-