Class Player
- java.lang.Object
-
- org.dreambot.api.wrappers.interactive.interact.Interactable
-
- org.dreambot.api.wrappers.interactive.Entity
-
- org.dreambot.api.wrappers.interactive.Character
-
- org.dreambot.api.wrappers.interactive.Player
-
- All Implemented Interfaces:
Identifiable,Locatable,Verified
public class Player extends Character
-
-
Constructor Summary
Constructors Constructor Description Player(java.lang.Object reference)Note: This shouldn't be used by API users, it's an internal constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanexists()Determines where or not this object exists in game.java.lang.String[]getActions()Gets the actions available for a player.int[]getAppearance()int[]getBodyColors()java.awt.RectanglegetBoundingBox()Gets the bounding box for the entity's modelPlayerCompositegetComposite()java.util.List<Item>getEquipment()Gets a list of Items that the player is wearing based onPlayerComposite.getAppearance()and adjusting the value to translate from appearance to item.intgetId()Gets ID number of the given object.intgetIndex()Gets the index of this Character.intgetLevel()Gets the Character's combat level.java.lang.StringgetName()Gets the name of the entityNameCompositegetNameComposite()Deprecated.internal use, use getNameintgetOverheadIcon()intgetSkullIcon()intgetTeam()booleanhasAction(java.lang.String... actions)Determines if player contains at least one of the following actions.java.lang.Stringhashed()java.lang.Stringhashed(java.lang.String prepend, java.lang.String append)booleanisHidden()Deprecated.not usedbooleanisSkulled()voidsetIndex(int index)java.lang.StringtoString()-
Methods inherited from class org.dreambot.api.wrappers.interactive.Character
canAttack, getAnimation, getAnimationDelay, getCharacterInteractingWithMe, getCharactersInteractingWithMe, getCombatTime, getFacingDirection, getGridX, getGridY, getHeadFrame, getHealthPercent, getHitSplatCycles, getHitSplatIds, getHitSplats, getHitSplatSpecials, getHitSplatTypes, getInteractingCharacter, getInteractingIndex, getLocalX, getLocalY, getOrientation, getOverhead, getQueueSize, getQueueX, getQueueY, getRenderableHeight, getServerTile, getSmoothOrientation, getSpotAnimation, getStandAnimation, getTailFrame, getUID, getWalkAnimation, getWalkingQueueSpeed, getX, getY, getZ, isAnimating, isHealthBarVisible, isInCombat, isInteractedWith, isInteracting, isMoving, isStandingStill
-
Methods inherited from class org.dreambot.api.wrappers.interactive.Entity
canReach, distance, distance, distance, equals, getCenterPoint, getClickablePoint, getLeftClickAction, getModel, getReference, getSurroundingArea, getTile, getTileReference, hashCode, interact, interact, interact, interact, interact, interactForceLeft, interactForceRight, isOnScreen, walkingDistance
-
Methods inherited from class org.dreambot.api.wrappers.interactive.interact.Interactable
hover, rightClick
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Identifiable
getID
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, getRegionId, tileDistance
-
-
-
-
Method Detail
-
getOverheadIcon
public int getOverheadIcon()
-
getTeam
public int getTeam()
-
getComposite
public PlayerComposite getComposite()
-
getLevel
public int getLevel()
Description copied from class:CharacterGets the Character's combat level.
-
getSkullIcon
public int getSkullIcon()
-
isSkulled
public boolean isSkulled()
-
isHidden
@Deprecated public boolean isHidden()
Deprecated.not used- Returns:
-
getNameComposite
@Deprecated public NameComposite getNameComposite()
Deprecated.internal use, use getName- Returns:
-
getName
public java.lang.String getName()
Description copied from class:EntityGets the name of the entity- Specified by:
getNamein interfaceIdentifiable- Specified by:
getNamein classEntity- Returns:
- name of entity
-
getIndex
public int getIndex()
Description copied from class:CharacterGets the index of this Character.
-
setIndex
public void setIndex(int index)
-
getBoundingBox
public java.awt.Rectangle getBoundingBox()
Description copied from class:EntityGets the bounding box for the entity's model- Overrides:
getBoundingBoxin classEntity- Returns:
- bounding box of model
-
getId
public int getId()
Description copied from interface:IdentifiableGets ID number of the given object.- Returns:
- the ID number as integer.
-
hasAction
public boolean hasAction(java.lang.String... actions)
Determines if player contains at least one of the following actions.
-
getActions
public java.lang.String[] getActions()
Gets the actions available for a player. This array DOES contain null values. Values returned here will update during wildy- Specified by:
getActionsin classEntity- Returns:
- Current available actions for a player
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAppearance
public int[] getAppearance()
-
getBodyColors
public int[] getBodyColors()
-
getEquipment
public java.util.List<Item> getEquipment()
Gets a list of Items that the player is wearing based onPlayerComposite.getAppearance()and adjusting the value to translate from appearance to item.- Returns:
- List of items player is wearing, empty if items not found, note specific slot information is not filled in.
-
hashed
public java.lang.String hashed()
-
hashed
public java.lang.String hashed(java.lang.String prepend, java.lang.String append)
-
-