Class RemoteModel

    • Constructor Detail

      • RemoteModel

        public RemoteModel​(OSRSEntity owner,
                           java.awt.Shape shape)
    • Method Detail

      • hasDynamicBounds

        public boolean hasDynamicBounds()
      • getInteractionPoint

        @Nullable
        public @Nullable InteractablePoint getInteractionPoint()
        Description copied from interface: Interactable
        Gets a point within the entity that can be interacted with. Assumes the origin is the current mouse position.
        Returns:
        an InteractablePoint if available, otherwise null
      • getHeight

        public int getHeight()
        Specified by:
        getHeight in class Model
      • getBoundingModel

        @Nullable
        public @Nullable BoundingModel getBoundingModel()
        Description copied from class: Model
        Gets the BoundingModel of this model.
        Specified by:
        getBoundingModel in class Model
      • getDefaultColors

        public java.util.Set<java.awt.Color> getDefaultColors()
        Description copied from class: Model
        Gets a list of colors that are used by default on the models polygons. These are sometimes replaced before being rendered and these substitutions can be retrieved from GameObjectDefinition#getColorSubstitutions and NpcDefinition#getColorSubstitutions.
        Specified by:
        getDefaultColors in class Model
      • isValid

        public boolean isValid()
        Description copied from interface: Validatable
        Verifies whether this entity is valid and still exists, typically on the world-graph
        Returns:
        true if it's still available, otherwise false
      • 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
        Overrides:
        render in class Model
      • 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
        Overrides:
        render in class Model
      • getShape

        public java.awt.Shape getShape()