Class CompositeCacheModel

    • Constructor Detail

      • CompositeCacheModel

        public CompositeCacheModel​(LocatableEntity entity,
                                   int[] componentIds)
      • CompositeCacheModel

        public CompositeCacheModel​(LocatableEntity entity,
                                   int heightOffset,
                                   int[] componentIds)
      • CompositeCacheModel

        public CompositeCacheModel​(LocatableEntity entity,
                                   int heightOffset,
                                   java.util.List<CacheModel> components)
    • Method Detail

      • getComponents

        public java.util.List<CacheModel> getComponents()
      • 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
      • setScale

        public void setScale​(int x,
                             int y,
                             int z)
      • getScaleXYZ

        public int[] getScaleXYZ()
      • getTranslationXYZ

        public int[] getTranslationXYZ()
      • setAnimations

        public void setAnimations​(int animationId,
                                  int animationFrame,
                                  int stanceId,
                                  int stanceFrame)
      • animate

        public void animate​(int animationId,
                            int animationFrame,
                            int stanceId,
                            int stanceFrame)
        Overrides:
        animate in class Model
      • getHeight

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

        public final boolean isVisible()
        Description copied from interface: Interactable
        Whether the entity is visible
        Specified by:
        isVisible in interface Interactable
        Overrides:
        isVisible in class Model
        Returns:
        true if visible, and false if not visible
      • 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
      • setTranslation

        public void setTranslation​(int xTranslation,
                                   int yTranslation,
                                   int zTranslation)