Interface IEntityAccessor


@ClientOnly @NonExtendable public interface IEntityAccessor
Used to get some basic data out of the game without having to request direct access to the game engine.
  • Method Details

    • getWorld

      Level getWorld()
    • getPlayer

      Player getPlayer()
    • getEntity

      <T extends Entity> T getEntity()
    • getEntityHitResult

      EntityHitResult getEntityHitResult()
    • getRenderingPosition

      @Nullable @Nullable Vec3 getRenderingPosition()
    • getServerDataTime

      long getServerDataTime()
    • getData

      IDataReader getData()
    • getUpdateId

      int getUpdateId()
    • getRayCastOrigin

      Vec3 getRayCastOrigin()
    • getRayCastDirection

      Vec3 getRayCastDirection()
    • getRayCastMaxDistance

      double getRayCastMaxDistance()
    • getFrameTime

      float getFrameTime()