Class Entity

    • Field Detail

      • uid

        public final long uid
    • Constructor Detail

      • Entity

        public Entity​(long uid)
    • Method Detail

      • setBackupModel

        public void setBackupModel​(int[] frontBottomLeft,
                                   int[] backTopRight)
        Description copied from interface: Modeled
        Sets a backup model to be used when the model isn't available.
        Specified by:
        setBackupModel in interface Modeled
      • setBackupModel

        public void setBackupModel​(com.runemate.game.api.hybrid.util.collections.Pair<int[],​int[]> values)
        Description copied from interface: Modeled
        Sets a pair of points to be used to create a backup model when the in-game model isn't available
        Specified by:
        setBackupModel in interface Modeled
      • setForcedModel

        public void setForcedModel​(int[] frontBottomLeft,
                                   int[] backTopRight)
        Description copied from interface: Modeled
        Sets a model to be used regardless of whether the in-game model is available.
        Specified by:
        setForcedModel in interface Modeled
      • setForcedModel

        public void setForcedModel​(com.runemate.game.api.hybrid.util.collections.Pair<int[],​int[]> values)
        Description copied from interface: Modeled
        Sets a pair of points to be used to create a model regardless of whether the in-game model is available
        Specified by:
        setForcedModel in interface Modeled
      • render

        public void render​(java.awt.Graphics2D g2d)
        Description copied from interface: Renderable
        Renders this entity onto the given Graphics2D, use is discouraged
        Specified by:
        render in interface Renderable
      • render

        public void render​(javafx.scene.canvas.GraphicsContext gc)
        Description copied from interface: Renderable
        Renders this entity onto the given GraphicsContext
        Specified by:
        render in interface Renderable
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • releaseUidOnGarbageCollection

        public void releaseUidOnGarbageCollection​(boolean release)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isValid

        public boolean isValid()
        Description copied from interface: Validatable
        Verifies whether this entity is valid and still exists, typically on the world-graph
        Specified by:
        isValid in interface Validatable
        Returns:
        true if it's still available, otherwise false