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