public static class PlacedBlockTrigger.Instance extends AbstractCriterionInstance
| Modifier and Type | Field and Description |
|---|---|
private Block |
block |
private ItemPredicate |
item |
private LocationPredicate |
location |
private java.util.Map<IProperty<?>,java.lang.Object> |
properties |
| Constructor and Description |
|---|
Instance(Block block,
java.util.Map<IProperty<?>,java.lang.Object> propertiesIn,
LocationPredicate locationIn,
ItemPredicate itemIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(IBlockState state,
BlockPos pos,
WorldServer world,
ItemStack item) |
getId, toStringprivate final Block block
private final java.util.Map<IProperty<?>,java.lang.Object> properties
private final LocationPredicate location
private final ItemPredicate item
public Instance(@Nullable
Block block,
@Nullable
java.util.Map<IProperty<?>,java.lang.Object> propertiesIn,
LocationPredicate locationIn,
ItemPredicate itemIn)
public boolean test(IBlockState state, BlockPos pos, WorldServer world, ItemStack item)