public class ProxyBlockSource extends java.lang.Object implements IBlockSource
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private World |
world |
Constructor and Description |
---|
ProxyBlockSource(World worldIn,
BlockPos posIn) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getBlockPos() |
BlockState |
getBlockState() |
<T extends TileEntity> |
getBlockTileEntity() |
World |
getWorld() |
double |
getX() |
double |
getY() |
double |
getZ() |
public double getX()
getX
in interface IBlockSource
getX
in interface IPosition
public double getY()
getY
in interface IBlockSource
getY
in interface IPosition
public double getZ()
getZ
in interface IBlockSource
getZ
in interface IPosition
public BlockPos getBlockPos()
getBlockPos
in interface IBlockSource
public BlockState getBlockState()
getBlockState
in interface IBlockSource
public <T extends TileEntity> T getBlockTileEntity()
getBlockTileEntity
in interface IBlockSource