Class BoundingModel

    • Field Detail

      • HUMANOID

        public static final com.runemate.game.api.hybrid.util.collections.Pair<int[],​int[]> HUMANOID
    • Constructor Detail

      • BoundingModel

        public BoundingModel​(LocatableEntity entity,
                             com.runemate.game.api.hybrid.util.collections.Pair<int[],​int[]> values)
      • BoundingModel

        public BoundingModel​(LocatableEntity entity,
                             int[] frontBottomLeft,
                             int[] backTopRight)
      • BoundingModel

        public BoundingModel​(LocatableEntity entity,
                             int heightOffset,
                             int[] frontBottomLeft,
                             int[] backTopRight)
    • Method Detail

      • getSourceValues

        public com.runemate.game.api.hybrid.util.collections.Pair<int[],​int[]> getSourceValues()
      • hasDynamicBounds

        public boolean hasDynamicBounds()
      • 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
      • getHeight

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

        public int hashCode()
        Overrides:
        hashCode in class Model
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Model
      • toString

        public java.lang.String toString()
        Overrides:
        toString 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