Package dev.twilite.game.wrapper
Class HintArrow
java.lang.Object
dev.twilite.game.wrapper.HintArrow
- All Implemented Interfaces:
Unit
Hint arrow marker, optionally targeting a unit.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarea()Returns the area this unit occupies.coord()Returns this unit's world coordinate.fine()Returns this unit's fine coordinate, representing its model location.map()Returns this unit's map coordinate relative to the loaded world area.target()Resolves the unit targeted by this hint arrow when it targets a unit type.inttype()Returns the hint-arrow target type.world()Returns the world this unit belongs to.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.twilite.game.trait.Unit
directPathTo, directPathTo, directPathTo, distanceTo, distanceTo, distanceTo, lineOfSightTo, lineOfSightTo, lineOfSightTo, lineOfWalkTo, lineOfWalkTo, lineOfWalkTo, manhattanDistanceTo, manhattanDistanceTo, manhattanDistanceTo, pathInDirection
-
Field Details
-
TYPE_NPC
public static final int TYPE_NPC- See Also:
-
TYPE_COORD
public static final int TYPE_COORD- See Also:
-
TYPE_PLAYER
public static final int TYPE_PLAYER- See Also:
-
TYPE_WORLD_ENTITY
public static final int TYPE_WORLD_ENTITY- See Also:
-
-
Constructor Details
-
HintArrow
Wraps a native hint-arrow provider.
-
-
Method Details
-
target
Resolves the unit targeted by this hint arrow when it targets a unit type. This can be aPlayer,NpcorWorldEntity -
type
public int type()Returns the hint-arrow target type. -
world
Description copied from interface:UnitReturns the world this unit belongs to. -
area
Description copied from interface:UnitReturns the area this unit occupies. -
coord
Description copied from interface:UnitReturns this unit's world coordinate. -
fine
Description copied from interface:UnitReturns this unit's fine coordinate, representing its model location. -
map
Description copied from interface:UnitReturns this unit's map coordinate relative to the loaded world area.
-