public static class PlacedBlockTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private ItemPredicate |
item |
private LocationPredicate |
location |
private StatePropertiesPredicate |
properties |
Constructor and Description |
---|
Instance(Block p_i225765_1_,
StatePropertiesPredicate p_i225765_2_,
LocationPredicate p_i225765_3_,
ItemPredicate p_i225765_4_) |
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
private final Block block
private final StatePropertiesPredicate properties
private final LocationPredicate location
private final ItemPredicate item
public Instance(@Nullable Block p_i225765_1_, StatePropertiesPredicate p_i225765_2_, LocationPredicate p_i225765_3_, ItemPredicate p_i225765_4_)
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()