Class RemoteModel
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.Model
-
- com.runemate.game.api.hybrid.local.hud.RemoteModel
-
- All Implemented Interfaces:
Animable
,Interactable
,Locatable
,Modeled
,Renderable
,Rotatable
,LocatableEntity
,Validatable
public class RemoteModel extends Model
-
-
Field Summary
-
Fields inherited from class com.runemate.game.api.hybrid.local.hud.Model
DEFAULT_HEIGHT_OFFSET
-
-
Constructor Summary
Constructors Constructor Description RemoteModel(OSRSEntity owner, java.awt.Shape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable 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()
@Nullable InteractablePoint
getInteractionPoint()
Gets a point within the entity that can be interacted with.java.awt.Shape
getShape()
boolean
hasDynamicBounds()
boolean
isValid()
Verifies whether this entity is valid and still exists, typically on the world-graphjava.util.List<Triangle>
projectTriangles()
java.util.List<Triangle>
projectTrianglesWithin(java.awt.Shape viewport)
void
render(java.awt.Graphics2D g2d)
Renders this entity onto the givenGraphics2D
, use is discouragedvoid
render(javafx.scene.canvas.GraphicsContext gc)
Renders this entity onto the givenGraphicsContext
-
Methods inherited from class com.runemate.game.api.hybrid.local.hud.Model
animate, click, contains, equals, getAnimationId, getArea, getHighPrecisionOrientation, getHighPrecisionPosition, getInteractionPoint, getModel, getOrientationAsAngle, getOwner, getPosition, getVisibility, hashCode, interact, isFacing, isVisible, projectBoundingRectangle, projectConvexHull, setBackupModel, setBackupModel, setBackupModel, setForcedModel, setForcedModel, setForcedModel, toString
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Interactable
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
-
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
-
projectTriangles
public java.util.List<Triangle> projectTriangles()
- Specified by:
projectTriangles
in classModel
-
projectTrianglesWithin
public java.util.List<Triangle> projectTrianglesWithin(java.awt.Shape viewport)
- Specified by:
projectTrianglesWithin
in classModel
-
getBoundingModel
@Nullable public @Nullable 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
-
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 givenGraphics2D
, use is discouraged- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classModel
-
render
public void render(javafx.scene.canvas.GraphicsContext gc)
Description copied from interface:Renderable
Renders this entity onto the givenGraphicsContext
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classModel
-
getShape
public java.awt.Shape getShape()
-
-