Class EnterBlockTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.EnterBlockTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- EnterBlockTrigger
public static class EnterBlockTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private Block
block
private StatePropertiesPredicate
state
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231560_1_, Block p_i231560_2_, StatePropertiesPredicate p_i231560_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnterBlockTrigger.Instance
entersBlock(Block p_203920_0_)
boolean
matches(BlockState p_192260_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
block
private final Block block
-
state
private final StatePropertiesPredicate state
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231560_1_, @Nullable Block p_i231560_2_, StatePropertiesPredicate p_i231560_3_)
-
-
Method Detail
-
entersBlock
public static EnterBlockTrigger.Instance entersBlock(Block p_203920_0_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
matches
public boolean matches(BlockState p_192260_1_)
-
-