static class BlockPredicateArgumentType.StatePredicate extends Object implements Predicate<CachedBlockPosition>
| Modifier and Type | Field and Description |
|---|---|
private CompoundTag |
nbt |
private Set<Property<?>> |
properties |
private BlockState |
state |
| Constructor and Description |
|---|
StatePredicate(BlockState state,
Set<Property<?>> properties,
CompoundTag nbt) |
private final BlockState state
@Nullable private final CompoundTag nbt
public StatePredicate(BlockState state, Set<Property<?>> properties, @Nullable CompoundTag nbt)
public boolean test(CachedBlockPosition cachedBlockPosition)
test in interface Predicate<CachedBlockPosition>