public class BlockWorldState
extends java.lang.Object
| Constructor and Description |
|---|
BlockWorldState(World worldIn,
BlockPos posIn,
boolean forceLoadIn) |
| Modifier and Type | Method and Description |
|---|---|
IBlockState |
getBlockState()
Gets the block state as currently held, or (if it has not gotten it from the world) loads it from the world.
|
BlockPos |
getPos() |
TileEntity |
getTileEntity()
Gets the tile entity as currently held, or (if it has not gotten it from the world) loads it from the world.
|
static <any> |
hasState(<any> predicatesIn)
Creates a new
Predicate that will match when the given IBlockState predicate matches. |
public IBlockState getBlockState()
#field_181628_c is true or the block position is
loaded.public TileEntity getTileEntity()
public BlockPos getPos()
public static <any> hasState(<any> predicatesIn)
Predicate that will match when the given IBlockState predicate matches.