Class SentinelCurrentTarget

java.lang.Object
org.mcmonkey.sentinel.SentinelCurrentTarget

public class SentinelCurrentTarget extends Object
Current target helper object.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    If true: the target is in line-of-sight and/or reachable and/or never been calculated.
    The target's UUID.
    long
    Remaining ticks before the target is invalid.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this object equals another.
    int
    Returns a hashcode for this instance.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • targetID

      public UUID targetID
      The target's UUID.
    • ticksLeft

      public long ticksLeft
      Remaining ticks before the target is invalid.
    • hasLos

      public boolean hasLos
      If true: the target is in line-of-sight and/or reachable and/or never been calculated. If false: the target is out of LOS or unreachable.
  • Constructor Details

    • SentinelCurrentTarget

      public SentinelCurrentTarget()
  • Method Details

    • hashCode

      public int hashCode()
      Returns a hashcode for this instance.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Returns whether this object equals another.
      Overrides:
      equals in class Object