public class BlockStateArgument extends Object implements Predicate<CachedBlockPosition>
Modifier and Type | Field and Description |
---|---|
private CompoundTag |
data |
private Set<Property<?>> |
properties |
private BlockState |
state |
Constructor and Description |
---|
BlockStateArgument(BlockState state,
Set<Property<?>> properties,
CompoundTag data) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getBlockState() |
boolean |
setBlockState(ServerWorld serverWorld,
BlockPos blockPos,
int int2) |
boolean |
test(CachedBlockPosition cachedBlockPosition) |
private final BlockState state
@Nullable private final CompoundTag data
public BlockStateArgument(BlockState state, Set<Property<?>> properties, @Nullable CompoundTag data)
public BlockState getBlockState()
public boolean test(CachedBlockPosition cachedBlockPosition)
test
in interface Predicate<CachedBlockPosition>
public boolean setBlockState(ServerWorld serverWorld, BlockPos blockPos, int int2)