Class HintArrow

java.lang.Object
dev.twilite.game.wrapper.HintArrow
All Implemented Interfaces:
Unit

public class HintArrow extends Object implements Unit
Hint arrow marker, optionally targeting a unit.
  • Field Details

  • Constructor Details

    • HintArrow

      public HintArrow(dev.twilite.game.internal.memory.RSHintArrow memory, World world)
      Wraps a native hint-arrow provider.
  • Method Details

    • target

      public Optional<? extends Unit> target()
      Resolves the unit targeted by this hint arrow when it targets a unit type. This can be a Player, Npc or WorldEntity
    • type

      public int type()
      Returns the hint-arrow target type.
    • world

      public World world()
      Description copied from interface: Unit
      Returns the world this unit belongs to.
      Specified by:
      world in interface Unit
    • area

      public Rect area()
      Description copied from interface: Unit
      Returns the area this unit occupies.
      Specified by:
      area in interface Unit
    • coord

      public Coord coord()
      Description copied from interface: Unit
      Returns this unit's world coordinate.
      Specified by:
      coord in interface Unit
    • fine

      public Coord.Fine fine()
      Description copied from interface: Unit
      Returns this unit's fine coordinate, representing its model location.
      Specified by:
      fine in interface Unit
    • map

      public Coord.Map map()
      Description copied from interface: Unit
      Returns this unit's map coordinate relative to the loaded world area.
      Specified by:
      map in interface Unit