Class PlayerContext

java.lang.Object
com.zenith.feature.pathfinder.PlayerContext

public final class PlayerContext extends Object
  • Field Details

  • Method Details

    • eyeHeight

      public static double eyeHeight(boolean ifSneaking)
    • player

      public Bot player()
    • entitiesStream

      public Stream<EntityLiving> entitiesStream()
    • playerFeet

      public BlockPos playerFeet()
    • playerFeetAsVec

      public org.cloudburstmc.math.vector.Vector3d playerFeetAsVec()
    • playerMotion

      public org.cloudburstmc.math.vector.Vector3d playerMotion()
    • playerHead

      public org.cloudburstmc.math.vector.Vector3d playerHead()
    • playerRotations

      public Rotation playerRotations()
    • getSelectedBlock

      public Optional<BlockPos> getSelectedBlock()
      Returns the block that the crosshair is currently placed over. Updated once per tick.
      Returns:
      The position of the highlighted block
    • objectMouseOver

      public BlockRaycastResult objectMouseOver()
    • isLookingAt

      public boolean isLookingAt(BlockPos pos)