public static class PlacedBlockTrigger.Instance extends CriterionInstance
Constructor and Description |
---|
Instance(Block block,
java.util.Map<IProperty<?>,java.lang.Object> propertiesIn,
LocationPredicate locationIn,
ItemPredicate itemIn) |
Modifier and Type | Method and Description |
---|---|
static PlacedBlockTrigger.Instance |
placedBlock(Block p_203934_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(BlockState state,
BlockPos pos,
ServerWorld world,
ItemStack item) |
getId, toString
public Instance(@Nullable Block block, @Nullable java.util.Map<IProperty<?>,java.lang.Object> propertiesIn, LocationPredicate locationIn, ItemPredicate itemIn)
public static PlacedBlockTrigger.Instance placedBlock(Block p_203934_0_)
public boolean test(BlockState state, BlockPos pos, ServerWorld world, ItemStack item)
public com.google.gson.JsonElement serialize()