Class PlacedBlockTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.PlacedBlockTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- PlacedBlockTrigger
public static class PlacedBlockTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private Block
block
private ItemPredicate
item
private LocationPredicate
location
private StatePropertiesPredicate
state
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231810_1_, Block p_i231810_2_, StatePropertiesPredicate p_i231810_3_, LocationPredicate p_i231810_4_, ItemPredicate p_i231810_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(BlockState p_193210_1_, BlockPos p_193210_2_, ServerWorld p_193210_3_, ItemStack p_193210_4_)
static PlacedBlockTrigger.Instance
placedBlock(Block p_203934_0_)
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
-
location
private final LocationPredicate location
-
item
private final ItemPredicate item
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231810_1_, @Nullable Block p_i231810_2_, StatePropertiesPredicate p_i231810_3_, LocationPredicate p_i231810_4_, ItemPredicate p_i231810_5_)
-
-
Method Detail
-
placedBlock
public static PlacedBlockTrigger.Instance placedBlock(Block p_203934_0_)
-
matches
public boolean matches(BlockState p_193210_1_, BlockPos p_193210_2_, ServerWorld p_193210_3_, ItemStack p_193210_4_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-