public class BlockStateInput extends java.lang.Object implements java.util.function.Predicate<CachedBlockInfo>
Modifier and Type | Field and Description |
---|---|
private java.util.Set<IProperty<?>> |
properties |
private BlockState |
state |
private CompoundNBT |
tag |
Constructor and Description |
---|
BlockStateInput(BlockState stateIn,
java.util.Set<IProperty<?>> propertiesIn,
CompoundNBT nbtIn) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getState() |
boolean |
place(ServerWorld worldIn,
BlockPos pos,
int flags) |
boolean |
test(CachedBlockInfo p_test_1_) |
private final BlockState state
private final java.util.Set<IProperty<?>> properties
@Nullable private final CompoundNBT tag
public BlockStateInput(BlockState stateIn, java.util.Set<IProperty<?>> propertiesIn, @Nullable CompoundNBT nbtIn)
public BlockState getState()
public boolean test(CachedBlockInfo p_test_1_)
test
in interface java.util.function.Predicate<CachedBlockInfo>
public boolean place(ServerWorld worldIn, BlockPos pos, int flags)