Class PlacedBlockTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.PlacedBlockTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- PlacedBlockTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Block
private final ItemPredicate
private final LocationPredicate
private final StatePropertiesPredicate
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(EntityPredicate.Composite p_59500_, Block p_59501_, StatePropertiesPredicate p_59502_, LocationPredicate p_59503_, ItemPredicate p_59504_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(BlockState p_59508_, BlockPos p_59509_, ServerLevel p_59510_, ItemStack p_59511_) placedBlock
(Block p_59506_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_59513_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
block
-
state
-
location
-
item
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_59500_, @Nullable Block p_59501_, StatePropertiesPredicate p_59502_, LocationPredicate p_59503_, ItemPredicate p_59504_)
-
-
Method Details
-
placedBlock
-
matches
public boolean matches(BlockState p_59508_, BlockPos p_59509_, ServerLevel p_59510_, ItemStack p_59511_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-