Class OSRSModel
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.Model
-
- com.runemate.game.api.hybrid.structures.RSModel
-
- com.runemate.game.api.osrs.local.hud.OSRSModel
-
- All Implemented Interfaces:
Animable
,Interactable
,Locatable
,Modeled
,Renderable
,Rotatable
,LocatableEntity
,Validatable
public final class OSRSModel extends RSModel
-
-
Field Summary
-
Fields inherited from class com.runemate.game.api.hybrid.local.hud.Model
DEFAULT_HEIGHT_OFFSET
-
-
Constructor Summary
Constructors Constructor Description OSRSModel(long uid, int heightOffset, LocatableEntity entity, int[][] points)
OSRSModel(long uid, LocatableEntity entity, int[][] points)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
BoundingModel
getBoundingModel()
Gets the BoundingModel of this model.java.util.Set<java.awt.Color>
getDefaultColors()
Gets a list of colors that are used by default on the models polygons.int
getHeight()
boolean
hasDynamicBounds()
int
hashCode()
@NonNull java.util.List<Triangle>
projectTriangles()
@NonNull java.util.List<Triangle>
projectTrianglesWithin(java.awt.Shape viewport)
-
Methods inherited from class com.runemate.game.api.hybrid.local.hud.Model
animate, click, contains, getAnimationId, getArea, getHighPrecisionOrientation, getHighPrecisionPosition, getInteractionPoint, getModel, getOrientationAsAngle, getOwner, getPosition, getVisibility, interact, isFacing, isVisible, 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
-
OSRSModel
public OSRSModel(long uid, int heightOffset, LocatableEntity entity, int[][] points)
-
OSRSModel
public OSRSModel(long uid, LocatableEntity entity, int[][] points)
-
-
Method Detail
-
hasDynamicBounds
public boolean hasDynamicBounds()
-
projectTriangles
@NonNull public @NonNull java.util.List<Triangle> projectTriangles()
- Specified by:
projectTriangles
in classModel
-
projectTrianglesWithin
@NonNull public @NonNull java.util.List<Triangle> projectTrianglesWithin(java.awt.Shape viewport)
- Specified by:
projectTrianglesWithin
in classModel
-
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
-
-