Package net.minecraft.util.math
Class BlockPointerImpl
java.lang.Object
net.minecraft.util.math.BlockPointerImpl
- All Implemented Interfaces:
BlockPointer
,Position
public class BlockPointerImpl extends Object implements BlockPointer
-
Field Summary
Fields Modifier and Type Field Description private BlockPos
pos
private ServerWorld
world
-
Constructor Summary
Constructors Constructor Description BlockPointerImpl(ServerWorld serverWorld, BlockPos pos)
-
Method Summary
Modifier and Type Method Description <T extends BlockEntity>
TgetBlockEntity()
BlockPos
getBlockPos()
BlockState
getBlockState()
ServerWorld
getWorld()
double
getX()
double
getY()
double
getZ()
-
Field Details
-
world
-
pos
-
-
Constructor Details
-
BlockPointerImpl
-
-
Method Details
-
getWorld
- Specified by:
getWorld
in interfaceBlockPointer
-
getX
public double getX()- Specified by:
getX
in interfaceBlockPointer
- Specified by:
getX
in interfacePosition
-
getY
public double getY()- Specified by:
getY
in interfaceBlockPointer
- Specified by:
getY
in interfacePosition
-
getZ
public double getZ()- Specified by:
getZ
in interfaceBlockPointer
- Specified by:
getZ
in interfacePosition
-
getBlockPos
- Specified by:
getBlockPos
in interfaceBlockPointer
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockPointer
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockPointer
-