Class CompositeCacheModel
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.Model
-
- com.runemate.game.api.hybrid.cache.elements.CompositeCacheModel
-
- All Implemented Interfaces:
Animable
,Interactable
,Locatable
,Modeled
,Renderable
,Rotatable
,LocatableEntity
,Validatable
public class CompositeCacheModel extends Model
-
-
Field Summary
-
Fields inherited from class com.runemate.game.api.hybrid.local.hud.Model
DEFAULT_HEIGHT_OFFSET
-
-
Constructor Summary
Constructors Constructor Description CompositeCacheModel(LocatableEntity entity, int[] componentIds)
CompositeCacheModel(LocatableEntity entity, int heightOffset, int[] componentIds)
CompositeCacheModel(LocatableEntity entity, int heightOffset, java.util.List<CacheModel> components)
CompositeCacheModel(LocatableEntity entity, java.util.List<CacheModel> components)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
animate(int animationId, int animationFrame, int stanceId, int stanceFrame)
boolean
equals(java.lang.Object o)
BoundingModel
getBoundingModel()
Gets the BoundingModel of this model.java.util.List<CacheModel>
getComponents()
java.util.Set<java.awt.Color>
getDefaultColors()
Gets a list of colors that are used by default on the models polygons.int
getHeight()
int[]
getScaleXYZ()
int[]
getTranslationXYZ()
boolean
hasDynamicBounds()
int
hashCode()
boolean
isValid()
Verifies whether this entity is valid and still exists, typically on the world-graphboolean
isVisible()
Whether the entity is visiblejava.util.List<Triangle>
projectTriangles()
java.util.List<Triangle>
projectTrianglesWithin(java.awt.Shape viewport)
void
setAnimations(int animationId, int animationFrame, int stanceId, int stanceFrame)
void
setScale(int x, int y, int z)
void
setTranslation(int xTranslation, int yTranslation, int zTranslation)
java.lang.String
toString()
-
Methods inherited from class com.runemate.game.api.hybrid.local.hud.Model
click, contains, getAnimationId, getArea, getHighPrecisionOrientation, getHighPrecisionPosition, getInteractionPoint, getModel, getOrientationAsAngle, getOwner, getPosition, getVisibility, interact, isFacing, projectBoundingRectangle, projectConvexHull, render, render, setBackupModel, setBackupModel, setBackupModel, setForcedModel, setForcedModel, setForcedModel
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Interactable
getInteractionPoint, hover, interact, interact, interact, interact, interact, isHovered
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Locatable
distanceTo, distanceTo, getLocalPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.LocatableEntity
getArea, getHighPrecisionPosition, getPosition
-
-
-
-
Constructor Detail
-
CompositeCacheModel
public CompositeCacheModel(LocatableEntity entity, int[] componentIds)
-
CompositeCacheModel
public CompositeCacheModel(LocatableEntity entity, int heightOffset, int[] componentIds)
-
CompositeCacheModel
public CompositeCacheModel(LocatableEntity entity, java.util.List<CacheModel> components)
-
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)
-
projectTriangles
public final java.util.List<Triangle> projectTriangles()
- Specified by:
projectTriangles
in classModel
-
projectTrianglesWithin
public final java.util.List<Triangle> projectTrianglesWithin(java.awt.Shape viewport)
- Specified by:
projectTrianglesWithin
in classModel
-
isVisible
public final boolean isVisible()
Description copied from interface:Interactable
Whether the entity is visible- Specified by:
isVisible
in interfaceInteractable
- Overrides:
isVisible
in classModel
- Returns:
- true if visible, and false if not visible
-
getBoundingModel
public BoundingModel getBoundingModel()
Description copied from class:Model
Gets the BoundingModel of this model.- Specified by:
getBoundingModel
in classModel
-
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 classModel
-
setTranslation
public void setTranslation(int xTranslation, int yTranslation, int zTranslation)
-
-