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 BlockPosposprivate ServerWorldworld -
Constructor Summary
Constructors Constructor Description BlockPointerImpl(ServerWorld world, BlockPos pos) -
Method Summary
Modifier and Type Method Description <T extends BlockEntity>
TgetBlockEntity()BlockPosgetBlockPos()BlockStategetBlockState()ServerWorldgetWorld()doublegetX()Returns the X coordinate.doublegetY()Returns the Y coordinate.doublegetZ()Returns the Z coordinate.
-
Field Details
-
world
-
pos
-
-
Constructor Details
-
BlockPointerImpl
-
-
Method Details
-
getWorld
- Specified by:
getWorldin interfaceBlockPointer
-
getX
public double getX()Returns the X coordinate.- Specified by:
getXin interfaceBlockPointer- Specified by:
getXin interfacePosition
-
getY
public double getY()Returns the Y coordinate.- Specified by:
getYin interfaceBlockPointer- Specified by:
getYin interfacePosition
-
getZ
public double getZ()Returns the Z coordinate.- Specified by:
getZin interfaceBlockPointer- Specified by:
getZin interfacePosition
-
getBlockPos
- Specified by:
getBlockPosin interfaceBlockPointer
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockPointer
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockPointer
-