public class CachedBlockInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
forceLoad |
private BlockPos |
pos |
private BlockState |
state |
private TileEntity |
tileEntity |
private boolean |
tileEntityInitialized |
private IWorldReader |
world |
Constructor and Description |
---|
CachedBlockInfo(IWorldReader worldIn,
BlockPos posIn,
boolean forceLoadIn) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getBlockState() |
BlockPos |
getPos() |
TileEntity |
getTileEntity() |
IWorldReader |
getWorld() |
static java.util.function.Predicate<CachedBlockInfo> |
hasState(java.util.function.Predicate<BlockState> predicatesIn) |
private final IWorldReader world
private final BlockPos pos
private final boolean forceLoad
private BlockState state
private TileEntity tileEntity
private boolean tileEntityInitialized
public CachedBlockInfo(IWorldReader worldIn, BlockPos posIn, boolean forceLoadIn)
public BlockState getBlockState()
@Nullable public TileEntity getTileEntity()
public IWorldReader getWorld()
public BlockPos getPos()
public static java.util.function.Predicate<CachedBlockInfo> hasState(java.util.function.Predicate<BlockState> predicatesIn)