Class SummonedFamiliar
- java.lang.Object
-
- com.runemate.game.api.rs3.entities.SummonedFamiliar
-
- All Implemented Interfaces:
Actor
,Animable
,Identifiable
,Interactable
,Locatable
,Modeled
,Onymous
,Renderable
,Rotatable
,LocatableEntity
,Npc
,Validatable
@Deprecated public final class SummonedFamiliar extends java.lang.Object implements Npc
Deprecated.A summoned npc with special characteristics
-
-
Constructor Summary
Constructors Constructor Description SummonedFamiliar(Summoning.Familiar info)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
click()
Deprecated.Clicks this entity in an interactable pointboolean
contains(java.awt.Point point)
Deprecated.Checks if the projected bounds of this entity contains the Point provided.int
getAnimationFrame()
Deprecated.Gets the current frame of the actors animationint
getAnimationId()
Deprecated.Gets the entities current animation idArea.Rectangular
getArea(Coordinate regionBase)
Deprecated.Gets the area using the region base as the coordinate to offset from.@Nullable NpcDefinition
getDefinition()
Deprecated.A definition containing a vast collection of data regarding this npcs creation on the world-graph@Nullable java.lang.String
getDialogue()
Deprecated.Gets the dialogue above an actors head@Nullable CombatGauge
getHealthGauge()
Deprecated.Gets the health gauge which is displayed during combatint
getHighPrecisionOrientation()
Deprecated.For internal usage only.Coordinate.HighPrecision
getHighPrecisionPosition(Coordinate regionBase)
Deprecated.Gets the high precision position using the region base as the coordinate to offset from.@NonNull java.util.List<Hitsplat>
getHitsplats()
Deprecated.int
getId()
Deprecated.Summoning.Familiar
getInfo()
Deprecated.Gets the enum information about this familiar@Nullable InteractablePoint
getInteractionPoint(java.awt.Point origin)
Deprecated.Gets a point within the entity that can be interacted with.int
getLevel()
Deprecated.Gets the npcs current level@Nullable Model
getModel()
Deprecated.Gets the polygon-based model of the entity@Nullable java.lang.String
getName()
Deprecated.int
getOrientationAsAngle()
Deprecated.Gets the current orientation as an angle.@NonNull java.util.List<OverheadIcon>
getOverheadIcons()
Deprecated.Gets a list of the overhead icons currently above the npc.@NonNull java.util.List<Coordinate>
getPath()
Deprecated.@Nullable Coordinate
getPosition(Coordinate regionBase)
Deprecated.Gets the position using the region base as the coordinate to offset from.Coordinate
getServerPosition()
Deprecated.Gets the position of the actor according to the server.@NonNull java.util.List<java.lang.Integer>
getSpotAnimationIds()
Deprecated.Gets a list of the spot animation ids of the entity.int
getStanceFrame()
Deprecated.Gets the current frame of the actors stance animationint
getStanceId()
Deprecated.Gets the current stance animation id@Nullable Actor
getTarget()
Deprecated.Gets the Actor that this Actor is targeting (talking, attacking, trading, pickpocketing, etc)double
getVisibility()
Deprecated.Returns a rough estimate of how visible this entity is as a percent (0 to 100)boolean
hasDynamicBounds()
Deprecated.boolean
interact(@Nullable java.util.regex.Pattern action, @Nullable java.util.regex.Pattern target)
Deprecated.Attempts to match action and target using Matcher.find() and then interacts with the appropriate menu itemboolean
isMoving()
Deprecated.Gets whether or not the actor is moving across the world graphboolean
isValid()
Deprecated.Verifies whether this entity is valid and still exists, typically on the world-graphboolean
isVisible()
Deprecated.Whether the entity is visiblevoid
render(javafx.scene.canvas.GraphicsContext gc)
Deprecated.Renders this entity onto the givenGraphicsContext
void
setBackupModel(int[] frontBottomLeft, int[] backTopRight)
Deprecated.Sets a backup model to be used when the model isn't available.void
setBackupModel(Model backup)
Deprecated.void
setBackupModel(com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]> values)
Deprecated.Sets a pair of points to be used to create a backup model when the in-game model isn't availablevoid
setForcedModel(int[] frontBottomLeft, int[] backTopRight)
Deprecated.Sets a model to be used regardless of whether the in-game model is available.void
setForcedModel(Model forced)
Deprecated.void
setForcedModel(com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]> values)
Deprecated.Sets a pair of points to be used to create a model regardless of whether the in-game model is availablejava.lang.String
toString()
Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.Npc
getActiveDefinition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Renderable
render
-
-
-
-
Constructor Detail
-
SummonedFamiliar
public SummonedFamiliar(Summoning.Familiar info)
Deprecated.
-
-
Method Detail
-
getInfo
public Summoning.Familiar getInfo()
Deprecated.Gets the enum information about this familiar
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
getAnimationFrame
public int getAnimationFrame()
Deprecated.Description copied from interface:Actor
Gets the current frame of the actors animation- Specified by:
getAnimationFrame
in interfaceActor
- Returns:
- the current frame, otherwise -1
-
getStanceFrame
public int getStanceFrame()
Deprecated.Description copied from interface:Actor
Gets the current frame of the actors stance animation- Specified by:
getStanceFrame
in interfaceActor
- Returns:
- the current frame, otherwise -1
-
getStanceId
public int getStanceId()
Deprecated.Description copied from interface:Actor
Gets the current stance animation id- Specified by:
getStanceId
in interfaceActor
- Returns:
- the current stance animation id, otherwise -1
-
isMoving
public boolean isMoving()
Deprecated.Description copied from interface:Actor
Gets whether or not the actor is moving across the world graph
-
getHealthGauge
@Nullable public @Nullable CombatGauge getHealthGauge()
Deprecated.Description copied from interface:Actor
Gets the health gauge which is displayed during combat- Specified by:
getHealthGauge
in interfaceActor
- Returns:
- the health gauge, otherwise null
-
getDialogue
@Nullable public @Nullable java.lang.String getDialogue()
Deprecated.Description copied from interface:Actor
Gets the dialogue above an actors head- Specified by:
getDialogue
in interfaceActor
- Returns:
- The actors current dialogue, otherwise null
-
getTarget
@Nullable public @Nullable Actor getTarget()
Deprecated.Description copied from interface:Actor
Gets the Actor that this Actor is targeting (talking, attacking, trading, pickpocketing, etc)
-
getOverheadIcons
@NonNull public @NonNull java.util.List<OverheadIcon> getOverheadIcons()
Deprecated.Description copied from interface:Actor
Gets a list of the overhead icons currently above the npc.- Specified by:
getOverheadIcons
in interfaceActor
-
getServerPosition
public Coordinate getServerPosition()
Deprecated.Description copied from interface:Actor
Gets the position of the actor according to the server.This value is typically ahead of where the client renders.
- Specified by:
getServerPosition
in interfaceActor
-
getSpotAnimationIds
@NonNull public @NonNull java.util.List<java.lang.Integer> getSpotAnimationIds()
Deprecated.Description copied from interface:Actor
Gets a list of the spot animation ids of the entity. A spot animation is a model that is animated simultaneously with the actor's model.- Specified by:
getSpotAnimationIds
in interfaceActor
-
getHitsplats
@NonNull public @NonNull java.util.List<Hitsplat> getHitsplats()
Deprecated.- Specified by:
getHitsplats
in interfaceActor
-
getPath
@NonNull public @NonNull java.util.List<Coordinate> getPath()
Deprecated.
-
getPosition
@Nullable public @Nullable Coordinate getPosition(Coordinate regionBase)
Deprecated.Description copied from interface:LocatableEntity
Gets the position using the region base as the coordinate to offset from. For optimization.- Specified by:
getPosition
in interfaceLocatableEntity
- Parameters:
regionBase
- The Coordinate base of the loaded region
-
getHighPrecisionPosition
@Nullable public Coordinate.HighPrecision getHighPrecisionPosition(Coordinate regionBase)
Deprecated.Description copied from interface:LocatableEntity
Gets the high precision position using the region base as the coordinate to offset from. For optimization.- Specified by:
getHighPrecisionPosition
in interfaceLocatableEntity
- Parameters:
regionBase
- The Coordinate base of the loaded region
-
getArea
@Nullable public Area.Rectangular getArea(Coordinate regionBase)
Deprecated.Description copied from interface:LocatableEntity
Gets the area using the region base as the coordinate to offset from. For optimization.- Specified by:
getArea
in interfaceLocatableEntity
- Parameters:
regionBase
- The Coordinate base of the loaded region
-
getLevel
public int getLevel()
Deprecated.Description copied from interface:Npc
Gets the npcs current level
-
getDefinition
@Nullable public @Nullable NpcDefinition getDefinition()
Deprecated.Description copied from interface:Npc
A definition containing a vast collection of data regarding this npcs creation on the world-graph- Specified by:
getDefinition
in interfaceNpc
- Returns:
- The definition, otherwise null
-
getAnimationId
public int getAnimationId()
Deprecated.Description copied from interface:Animable
Gets the entities current animation id- Specified by:
getAnimationId
in interfaceAnimable
- Returns:
- the current animation id, or if unavailable -1
-
getId
public int getId()
Deprecated.- Specified by:
getId
in interfaceIdentifiable
-
isVisible
public boolean isVisible()
Deprecated.Description copied from interface:Interactable
Whether the entity is visible- Specified by:
isVisible
in interfaceInteractable
- Returns:
- true if visible, and false if not visible
-
getVisibility
public double getVisibility()
Deprecated.Description copied from interface:Interactable
Returns a rough estimate of how visible this entity is as a percent (0 to 100)- Specified by:
getVisibility
in interfaceInteractable
-
hasDynamicBounds
public boolean hasDynamicBounds()
Deprecated.- Specified by:
hasDynamicBounds
in interfaceInteractable
-
getInteractionPoint
@Nullable public @Nullable InteractablePoint getInteractionPoint(java.awt.Point origin)
Deprecated.Description copied from interface:Interactable
Gets a point within the entity that can be interacted with. Takes into account the direction of movement from the origin point.- Specified by:
getInteractionPoint
in interfaceInteractable
-
contains
public boolean contains(java.awt.Point point)
Deprecated.Description copied from interface:Interactable
Checks if the projected bounds of this entity contains the Point provided.- Specified by:
contains
in interfaceInteractable
- Returns:
-
click
public boolean click()
Deprecated.Description copied from interface:Interactable
Clicks this entity in an interactable point- Specified by:
click
in interfaceInteractable
- Returns:
- true if successfully clicked
-
interact
public boolean interact(@Nullable @Nullable java.util.regex.Pattern action, @Nullable @Nullable java.util.regex.Pattern target)
Deprecated.Description copied from interface:Interactable
Attempts to match action and target using Matcher.find() and then interacts with the appropriate menu item- Specified by:
interact
in interfaceInteractable
- Parameters:
action
- The pattern to match the action with, if null it's ignoredtarget
- The pattern to match the target with, if null it's ignored
-
getModel
@Nullable public @Nullable Model getModel()
Deprecated.Description copied from interface:Modeled
Gets the polygon-based model of the entity
-
setBackupModel
public void setBackupModel(int[] frontBottomLeft, int[] backTopRight)
Deprecated.Description copied from interface:Modeled
Sets a backup model to be used when the model isn't available.- Specified by:
setBackupModel
in interfaceModeled
-
setBackupModel
public void setBackupModel(com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]> values)
Deprecated.Description copied from interface:Modeled
Sets a pair of points to be used to create a backup model when the in-game model isn't available- Specified by:
setBackupModel
in interfaceModeled
-
setBackupModel
public void setBackupModel(Model backup)
Deprecated.- Specified by:
setBackupModel
in interfaceModeled
-
setForcedModel
public void setForcedModel(int[] frontBottomLeft, int[] backTopRight)
Deprecated.Description copied from interface:Modeled
Sets a model to be used regardless of whether the in-game model is available.- Specified by:
setForcedModel
in interfaceModeled
-
setForcedModel
public void setForcedModel(com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]> values)
Deprecated.Description copied from interface:Modeled
Sets a pair of points to be used to create a model regardless of whether the in-game model is available- Specified by:
setForcedModel
in interfaceModeled
-
setForcedModel
public void setForcedModel(Model forced)
Deprecated.- Specified by:
setForcedModel
in interfaceModeled
-
getName
@Nullable public @Nullable java.lang.String getName()
Deprecated.
-
render
public void render(javafx.scene.canvas.GraphicsContext gc)
Deprecated.Description copied from interface:Renderable
Renders this entity onto the givenGraphicsContext
- Specified by:
render
in interfaceRenderable
-
getHighPrecisionOrientation
public int getHighPrecisionOrientation()
Deprecated.Description copied from interface:Rotatable
For internal usage only. Subject to removal without notice.- Specified by:
getHighPrecisionOrientation
in interfaceRotatable
-
getOrientationAsAngle
public int getOrientationAsAngle()
Deprecated.Description copied from interface:Rotatable
Gets the current orientation as an angle.- Specified by:
getOrientationAsAngle
in interfaceRotatable
-
isValid
public boolean isValid()
Deprecated.Description copied from interface:Validatable
Verifies whether this entity is valid and still exists, typically on the world-graph- Specified by:
isValid
in interfaceValidatable
- Returns:
- true if it's still available, otherwise false
-
-