public static class PlacedBlockCriterion.Conditions extends AbstractCriterionConditions
| Modifier and Type | Field and Description |
|---|---|
private Block |
block |
private ItemPredicate |
item |
private LocationPredicate |
location |
private StatePredicate |
state |
| Constructor and Description |
|---|
Conditions(EntityPredicate.class_5258 class_5258,
Block block,
StatePredicate statePredicate,
LocationPredicate locationPredicate,
ItemPredicate itemPredicate) |
| Modifier and Type | Method and Description |
|---|---|
static PlacedBlockCriterion.Conditions |
block(Block block) |
boolean |
matches(BlockState state,
BlockPos pos,
ServerWorld world,
ItemStack stack) |
JsonObject |
toJson(class_5267 class_5267) |
getId, method_27790, toStringprivate final Block block
private final StatePredicate state
private final LocationPredicate location
private final ItemPredicate item
public Conditions(EntityPredicate.class_5258 class_5258, @Nullable Block block, StatePredicate statePredicate, LocationPredicate locationPredicate, ItemPredicate itemPredicate)
public static PlacedBlockCriterion.Conditions block(Block block)
public boolean matches(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack)
public JsonObject toJson(class_5267 class_5267)
toJson in interface CriterionConditionstoJson in class AbstractCriterionConditions