public interface IPlayerContext
Modifier and Type | Method and Description |
---|---|
static double |
eyeHeight(boolean ifSneaking) |
default java.util.Optional<net.minecraft.util.math.BlockPos> |
getSelectedBlock()
Returns the block that the crosshair is currently placed over.
|
default boolean |
isLookingAt(net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.math.RayTraceResult |
objectMouseOver() |
net.minecraft.client.entity.EntityPlayerSP |
player() |
IPlayerController |
playerController() |
default BetterBlockPos |
playerFeet() |
default net.minecraft.util.math.Vec3d |
playerFeetAsVec() |
default net.minecraft.util.math.Vec3d |
playerHead() |
default Rotation |
playerRotations() |
net.minecraft.world.World |
world() |
IWorldData |
worldData() |
net.minecraft.client.entity.EntityPlayerSP player()
IPlayerController playerController()
net.minecraft.world.World world()
IWorldData worldData()
net.minecraft.util.math.RayTraceResult objectMouseOver()
default BetterBlockPos playerFeet()
default net.minecraft.util.math.Vec3d playerFeetAsVec()
default net.minecraft.util.math.Vec3d playerHead()
default Rotation playerRotations()
static double eyeHeight(boolean ifSneaking)
default java.util.Optional<net.minecraft.util.math.BlockPos> getSelectedBlock()
default boolean isLookingAt(net.minecraft.util.math.BlockPos pos)