public class BlockPointerImpl extends Object implements BlockPointer
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private ServerWorld |
world |
Constructor and Description |
---|
BlockPointerImpl(ServerWorld serverWorld,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
<T extends BlockEntity> |
getBlockEntity() |
BlockPos |
getBlockPos() |
BlockState |
getBlockState() |
ServerWorld |
getWorld() |
double |
getX() |
double |
getY() |
double |
getZ() |
private final ServerWorld world
private final BlockPos pos
public BlockPointerImpl(ServerWorld serverWorld, BlockPos pos)
public ServerWorld getWorld()
getWorld
in interface BlockPointer
public double getX()
getX
in interface BlockPointer
getX
in interface Position
public double getY()
getY
in interface BlockPointer
getY
in interface Position
public double getZ()
getZ
in interface BlockPointer
getZ
in interface Position
public BlockPos getBlockPos()
getBlockPos
in interface BlockPointer
public BlockState getBlockState()
getBlockState
in interface BlockPointer
public <T extends BlockEntity> T getBlockEntity()
getBlockEntity
in interface BlockPointer