Class Projectile

    • Constructor Detail

      • Projectile

        public Projectile​(java.lang.Object reference)
        Note: This shouldn't be used by API users, it's an internal constructor.
    • Method Detail

      • getEndCycle

        public int getEndCycle()
      • getStartCycle

        public int getStartCycle()
      • getZ

        public int getZ()
        Description copied from interface: Locatable
        Gets Z coordinate of the given object.
        Specified by:
        getZ in interface Locatable
        Returns:
        the Z coordinate of the object.
      • getHeightOffset

        @Deprecated
        public double getHeightOffset()
        Deprecated.
      • getSlope

        public int getSlope()
      • getRawOriginX

        public int getRawOriginX()
      • getRawOriginY

        public int getRawOriginY()
      • getOriginEntityIndex

        public int getOriginEntityIndex()
      • getOriginEntity

        public Entity getOriginEntity()
      • getTargetEntity

        public Entity getTargetEntity()
      • getLocalOriginY

        public int getLocalOriginY()
      • getLocalOriginX

        public int getLocalOriginX()
      • getOriginY

        public int getOriginY()
      • getOriginX

        public int getOriginX()
      • getOriginTile

        public Tile getOriginTile()
      • getTargetDistance

        public int getTargetDistance()
      • getTargetIndex

        public int getTargetIndex()
      • getTargetTile

        public Tile getTargetTile()
      • getId

        public int getId()
      • getID

        @Deprecated
        public int getID()
        Deprecated.
      • isMoving

        @Deprecated
        public boolean isMoving()
        Deprecated.
        was only set to true when move method was called, otherwise it was false on construction
        Returns:
        false
      • getRotationX

        @Deprecated
        public double getRotationX()
        Deprecated.
      • getRotationY

        @Deprecated
        public double getRotationY()
        Deprecated.
      • getSpeedZ

        @Deprecated
        public double getSpeedZ()
        Deprecated.
      • getSpeedX

        @Deprecated
        public double getSpeedX()
        Deprecated.
      • getSpeedY

        @Deprecated
        public double getSpeedY()
        Deprecated.
      • getLocalX

        public int getLocalX()
      • getX

        public int getX()
        Description copied from interface: Locatable
        Gets X coordinate of the given object.
        Specified by:
        getX in interface Locatable
        Returns:
        the X coordinate of the object.
      • getLocalY

        public int getLocalY()
      • getY

        public int getY()
        Description copied from interface: Locatable
        Gets Y coordinate of the given object.
        Specified by:
        getY in interface Locatable
        Returns:
        the Y coordinate of the object.
      • exists

        public boolean exists()
      • getTile

        public Tile getTile()
        Description copied from interface: Locatable
        Gets tile of the object.
        Specified by:
        getTile in interface Locatable
        Returns:
        the object tile.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object