Interface Client
-
- All Superinterfaces:
GameEngine
,OAuthApi
public interface Client extends OAuthApi, GameEngine
Represents the RuneScape client.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DRAW_2D_ALL
Draw all 2D extras.static int
DRAW_2D_NONE
Hide all 2D extras.static int
DRAW_2D_OTHERS
Render elements not otherwise specified in this bitflag.static int
DRAW_2D_OVERHEAD_TEXT
Render overhead text.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description MessageNode
addChatMessage(ChatMessageType type, String name, String message, String sender)
Adds a new chat message to the chatbox.MessageNode
addChatMessage(ChatMessageType type, String name, String message, String sender, boolean postEvent)
Adds a new chat message to the chatbox.void
changeMemoryMode(boolean lowMemory)
Changes how game behaves based on memory mode.void
changeWorld(World world)
Changes the selected world to log in to.void
checkClickbox(Projection projection, Model model, int orientation, int x, int y, int z, long hash)
void
clearHintArrow()
Clears the current hint arrow.void
closeInterface(WidgetNode interfaceNode, boolean unload)
Close an interfaceIndexedSprite
createIndexedSprite()
Creates an empty indexed sprite.SpritePixels
createItemSprite(int itemId, int quantity, int border, int shadowColor, int stackable, boolean noted, int scale)
Creates an item icon sprite with passed variables.MenuEntry
createMenuEntry(int idx)
Deprecated.default Projectile
createProjectile(int id, int plane, int startX, int startY, int startZ, int startCycle, int endCycle, int slope, int startHeight, int endHeight, Actor target, int targetX, int targetY)
Deprecated.RuneLiteObject
createRuneLiteObject()
Creates a RuneLiteObject, which is a modifiedGraphicsObject
ScriptEvent
createScriptEvent(Object... args)
Creates a blank ScriptEvent for executing a ClientScript2 scriptSpritePixels
createSpritePixels(int[] pixels, int width, int height)
Creates a sprite image with given width and height containing the pixels.World
createWorld()
Creates a new instance of a world.void
draw2010Menu(int alpha)
Draws a menu in the 2010 interface style.SpritePixels
drawInstanceMap(int z)
Draws an instance map for the current viewed plane.void
drawOriginalMenu(int alpha)
Draws a menu in the OSRS interface style.int
get3dZoom()
AccountType
getAccountType()
Deprecated.see Varbits#ACCOUNT_TYPEDeque<AmbientSoundEffect>
getAmbientSoundEffects()
Gets the ambient sound effectsNodeCache
getAnimationCache()
Returns the clientAnimation
cacheIntPredicate
getAnimationInterpolationFilter()
int[]
getArray(int arrayId)
Get one of the cs2 vm's arrays.int
getArraySizes(int arrayId)
Get the size of one of the cs2 vm's arrays.default int
getBaseX()
Deprecated.default int
getBaseY()
Deprecated.int
getBoostedSkillLevel(Skill skill)
Gets the current modified level of a skill.int[]
getBoostedSkillLevels()
BufferProvider
getBufferProvider()
Gets the clients graphic buffer provider.String
getBuildID()
default NPC[]
getCachedNPCs()
Deprecated.default Player[]
getCachedPlayers()
Deprecated.Callbacks
getCallbacks()
The injected client invokes these callbacks to send events to usdouble
getCameraFocalPointX()
Get the camera focus point x Typically this is the player position, but can be other points in cutscenes or in free camera mode.double
getCameraFocalPointY()
Get the camera focus point y Typically this is the player position, but can be other points in cutscenes or in free camera mode.double
getCameraFocalPointZ()
Get the camera focus point z Typically this is the player position, but can be other points in cutscenes or in free camera mode.double
getCameraFpPitch()
Floating point camera pitch.double
getCameraFpX()
Floating point camera position, x-axisdouble
getCameraFpY()
Floating point camera position, y-axisdouble
getCameraFpYaw()
Floating point camera yawdouble
getCameraFpZ()
Floating point camera position, z-axisint
getCameraMode()
Get the camera modeint
getCameraPitch()
Gets the pitch of the camera.int
getCameraPitchTarget()
Get the target camera pitch The target pitch is the pitch the camera should use based on player input.int
getCameraX()
Gets the x-axis coordinate of the camera.int
getCameraY()
Gets the y-axis coordinate of the camera.int
getCameraYaw()
Gets the yaw of the camera.int
getCameraYawTarget()
Get the target camera yaw.int
getCameraZ()
Gets the z-axis coordinate of the camera.Canvas
getCanvas()
Gets the canvas that contains everything.int
getCanvasHeight()
Gets the canvas heightint
getCanvasWidth()
Gets the canvas widthint
getCenterX()
int
getCenterY()
Map<Integer,ChatLineBuffer>
getChatLineMap()
Gets the map of chat buffers.ClanChannel
getClanChannel()
Get the primary clan channel the player is in.ClanChannel
getClanChannel(int clanId)
Get clan channel by id.ClanSettings
getClanSettings()
Get clan settings for the clan the user is in.ClanSettings
getClanSettings(int clanId)
Get clan settings by iddefault CollisionData[]
getCollisionMaps()
Deprecated.HashTable<WidgetNode>
getComponentTable()
Gets the widget node component table.SpritePixels[]
getCrossSprites()
Returns the array of cross sprites that appear and animate when left-clickinglong[]
getCrossWorldMessageIds()
Get the list of message ids for the recently received cross-world messages.int
getCrossWorldMessageIdsIndex()
Get the index of the next message to be inserted in the cross world message id listint
getCurrentLoginField()
Gets currently selected login field.DBRowConfig
getDBRowConfig(int rowID)
List<Integer>
getDBRowsByValue(int table, int column, int tupleIndex, Object value)
Uses an index to find rows containing a certain value in a column.Object[]
getDBTableField(int rowID, int column, int tupleIndex)
Gets a entry out of a DBTable RowWidget
getDraggedOnWidget()
Gets the widget that is being dragged on.Widget
getDraggedWidget()
Gets the widget currently being dragged.int
getDragTime()
Get the number of client cycles the current dragged widget has been dragged for.int
getDraw2DMask()
Gets the current draw2D mask.DrawCallbacks
getDrawCallbacks()
The injected client invokes these callbacks for scene drawing, which is used by the gpu plugin to override the client's normal scene drawing codeint
getEnergy()
Gets the current run energy of the logged in player.EnumComposition
getEnum(int id)
int
getExpandedMapLoading()
NPC
getFollower()
Get the local player's follower, such as a petint
getFPS()
Gets the current FPS (frames per second).FriendContainer
getFriendContainer()
Retrieve the nameable container containing friendsFriendsChatManager
getFriendsChatManager()
Retrieve the friends chat managerint
getGameCycle()
Gets the local clients game cycle.GameState
getGameState()
Gets the current game state.GrandExchangeOffer[]
getGrandExchangeOffers()
Gets an array of current grand exchange offers.default Deque<GraphicsObject>
getGraphicsObjects()
Deprecated.ClanChannel
getGuestClanChannel()
Get the guest clan channel the player is in.ClanSettings
getGuestClanSettings()
Get the guest clan's settings.NPC
getHintArrowNpc()
Gets the NPC that the hint arrow is directed at.Player
getHintArrowPlayer()
Gets the player that the hint arrow is directed at.WorldPoint
getHintArrowPoint()
Gets the world point that the hint arrow is directed at.int
getHintArrowType()
Gets the type of hint arrow currently displayed.int
getIdleTimeout()
Get the amount of time until the client automatically logs out due to idle input.NameableContainer<Ignore>
getIgnoreContainer()
Retrieve the nameable container containing ignoresIndexDataBase
getIndex(int id)
Gets an index by idIndexDataBase
getIndexConfig()
Gets the config index.IndexDataBase
getIndexScripts()
Gets the script index.IndexDataBase
getIndexSprites()
Gets the sprite index.int[][][]
getInstanceTemplateChunks()
Deprecated.int[]
getIntStack()
Gets the cs2 vm's int stackint
getIntStackSize()
Gets the length of the cs2 vm's int stackNodeCache
getItemCompositionCache()
Returns client item composition cacheItemContainer
getItemContainer(int id)
Get an item container by idItemContainer
getItemContainer(InventoryID inventory)
Get the item container for an inventory.HashTable<ItemContainer>
getItemContainers()
Get all item containersint
getItemCount()
Returns the max item index + 1 from cacheItemComposition
getItemDefinition(int id)
Gets the item composition corresponding to an items ID.NodeCache
getItemModelCache()
Get the item model cache.NodeCache
getItemSpriteCache()
Get the item sprite cache.int
getKeyboardIdleTicks()
Gets the amount of client ticks since the last keyboard press occurred.String
getLauncherDisplayName()
Gets the display name of the active account when launched from the Jagex launcher.LocalPoint
getLocalDestinationLocation()
Gets the location of the local player.Player
getLocalPlayer()
Gets the logged in player instance.int
getLoginIndex()
Gets index of current login state.int
getMapAngle()
Deprecated.SpritePixels[]
getMapDots()
Gets an array of currently drawn mini-map dots.MapElementConfig
getMapElementConfig(int id)
Get a map element config by idSpritePixels[]
getMapIcons()
Gets an array of current map icon sprites.int[]
getMapRegions()
Deprecated.IndexedSprite[]
getMapScene()
Gets a sprite of the map sceneMenu
getMenu()
Get the client menu.MenuEntry[]
getMenuEntries()
Deprecated.int
getMenuHeight()
Deprecated.int
getMenuScroll()
Get the number of entries the currently open menu has been scrolled down.int
getMenuWidth()
Deprecated.int
getMenuX()
Deprecated.int
getMenuY()
Deprecated.IterableHashTable<MessageNode>
getMessages()
Map of message node id to message nodedouble
getMinimapZoom()
Gets the number of pixels per tile on the minimap.IndexedSprite[]
getModIcons()
Gets an array of mod icon sprites.Point
getMouseCanvasPosition()
Gets the current position of the mouse on the canvas.int
getMouseCurrentButton()
Gets the current mouse button that is pressed.int
getMouseIdleTicks()
Gets the amount of client ticks since the last mouse movement occurred.long
getMouseLastPressedMillis()
Gets the time at which the last mouse press occurred in milliseconds since the UNIX epoch.int
getMusicVolume()
Gets the music volumeNPCComposition
getNpcDefinition(int npcId)
Gets the NPC composition corresponding to an NPCs ID.default List<NPC>
getNpcs()
Deprecated.NodeCache
getObjectCompositionCache()
Returns client object composition cacheObjectComposition
getObjectDefinition(int objectId)
Gets the object composition corresponding to an objects ID.int
getOculusOrbFocalPointX()
Deprecated.int
getOculusOrbFocalPointY()
Deprecated.int
getOculusOrbState()
Deprecated.long
getOverallExperience()
Get the total experience of the playerdefault int
getPlane()
Deprecated.int[]
getPlayerMenuTypes()
Gets an array of player menu types.String[]
getPlayerOptions()
Gets an array of options that can currently be used on other players.boolean[]
getPlayerOptionsPriorities()
Gets an array of whether an option is enabled or not.default List<Player>
getPlayers()
Deprecated.Preferences
getPreferences()
Gets the clients saved preferences.default Deque<Projectile>
getProjectiles()
Deprecated.Rasterizer
getRasterizer()
int
getRasterizer3D_clipMidX2()
int
getRasterizer3D_clipMidY2()
int
getRasterizer3D_clipNegativeMidX()
int
getRasterizer3D_clipNegativeMidY()
Dimension
getRealDimensions()
Gets the real dimensions of the client before being stretched.int
getRealSkillLevel(Skill skill)
Gets the real level of a skill.int[]
getRealSkillLevels()
RenderOverview
getRenderOverview()
Deprecated.int
getRevision()
Gets the client revision number.int
getScale()
Gets the scale of the world (zoom value).default Scene
getScene()
Deprecated.Widget
getScriptActiveWidget()
Gets the cs2 vm's active widget This is used for allcc_*
operations with a0
operandWidget
getScriptDotWidget()
Gets the cs2 vm's "dot" widget This is used for all.cc_*
operations with a1
operanddefault Tile
getSelectedSceneTile()
Deprecated.Widget
getSelectedWidget()
Get the selected widget, such as a selected spell or selected item (eg.int
getServerVarbitValue(int varbit)
Gets the value of the given varbit.int[]
getServerVarps()
Get an array of all server varplayers.int
getServerVarpValue(int varpId)
Gets the value of a given VarPlayer.int
getSkillExperience(Skill skill)
Gets the current experience towards a skill.int[]
getSkillExperiences()
int
getSkyboxColor()
Gets the RGB color of the skyboxMap<Integer,SpritePixels>
getSpriteOverrides()
Gets a mapping of sprites to override.SpritePixels[]
getSprites(IndexDataBase source, int archiveId, int fileId)
Loads and creates the sprite images of the passed archive and file IDs.Dimension
getStretchedDimensions()
Gets the current stretched dimensions of the client.String[]
getStringStack()
Gets the cs2 vm's string stackint
getStringStackSize()
Gets the length of the cs2 vm's string stackStructComposition
getStructComposition(int structID)
Gets theStructComposition
for a given struct IDNodeCache
getStructCompositionCache()
Gets the client's cache of in memory struct compositionsTextureProvider
getTextureProvider()
int
getTickCount()
Gets the current server tick count.default int[][][]
getTileHeights()
Deprecated.default byte[][][]
getTileSettings()
Deprecated.int
getTopLevelInterfaceId()
Gets Interface ID of the root widgetWorldView
getTopLevelWorldView()
Get the top level world viewint
getTotalLevel()
Calculates the total level from real skill levels.String
getUsername()
Deprecated.int
getVar(int varbit)
Deprecated.VarbitComposition
getVarbit(int id)
Gets the varbit composition for a given varbit idint
getVarbitValue(int varbit)
Gets the value of the given varbit.int
getVarbitValue(int[] varps, int varbitId)
Gets the value of a given variable.int
getVarcIntValue(int var)
Gets the value of a given VarClientIntMap<Integer,Object>
getVarcMap()
Gets an array of all client variables.String
getVarcStrValue(int var)
Gets the value of a given VarClientStrint[]
getVarps()
Gets an array of all client varplayers.int
getVarpValue(int varpId)
Gets the value of a given VarPlayer.int
getViewportHeight()
Gets the height of the viewport.int
getViewportWidth()
Gets the width of the viewport.int
getViewportXOffset()
Gets the x-axis offset of the viewport.int
getViewportYOffset()
Gets the y-axis offset of the viewport.int
getWeight()
Gets the current weight of the logged in player.Widget
getWidget(int componentId)
Gets a widget by its component id.Widget
getWidget(int groupId, int childId)
Gets a widget by its raw group ID and child ID.Widget
getWidget(WidgetInfo widget)
Deprecated.HashTable<IntegerNode>
getWidgetFlags()
Gets the widget flags table.int[]
getWidgetPositionsX()
Gets an array containing the x-axis canvas positions of all widgets.int[]
getWidgetPositionsY()
Gets an array containing the y-axis canvas positions of all widgets.Widget[]
getWidgetRoots()
Gets the root widgets.NodeCache
getWidgetSpriteCache()
Returns widget sprite cache, to be used withgetSpriteOverrides()
Map<Integer,SpritePixels>
getWidgetSpriteOverrides()
Gets a mapping of widget sprites to override.int
getWorld()
Gets the current world number of the logged in player.World[]
getWorldList()
Gets a list of all RuneScape worlds.WorldMap
getWorldMap()
Get the world mapEnumSet<WorldType>
getWorldType()
Gets a set of current world types that apply to the logged in world.WorldView
getWorldView(int id)
Get worldview by idint[][]
getXteaKeys()
Deprecated.boolean
hasHintArrow()
Checks whether or not there is any active hint arrow.void
hopToWorld(World world)
Hops using in-game world hopper widget to another worldvoid
invalidateStretching(boolean resize)
Invalidates cached dimensions that are used for stretching and scaling.boolean
isCameraShakeDisabled()
Whether camera shaking effects are disabled at e.g.boolean
isDraggingWidget()
Checks whether a widget is currently being dragged.boolean
isFriended(String name, boolean mustBeLoggedIn)
Checks whether a player is on the friends list.boolean
isGpu()
boolean
isInInstancedRegion()
Deprecated.boolean
isKeyPressed(int keycode)
Test if a key is pressedboolean
isMenuOpen()
Checks whether a right-click menu is currently open.boolean
isMenuScrollable()
Returns whether the currently open menu is scrollable.boolean
isMinimapZoom()
Get whether minimap zoom is enabledboolean
isPrayerActive(Prayer prayer)
Checks whether or not a prayer is currently active.boolean
isResized()
Checks whether the client window is currently resized.boolean
isStretchedEnabled()
Checks whether the client is in stretched mode.boolean
isStretchedFast()
Checks whether the client is using fast rendering techniques when stretching the canvas.boolean
isWidgetSelected()
Is a widget is in target mode?Animation
loadAnimation(int id)
Loads an animation from the cacheModel
loadModel(int id)
Loads and lights a model from the cache This is equivalent toloadModelData(id).light()
Model
loadModel(int id, short[] colorToFind, short[] colorToReplace)
Loads a model from the cache and also recolors itModelData
loadModelData(int id)
Loads an unlit model from the cache.void
menuAction(int p0, int p1, MenuAction action, int id, int itemId, String option, String target)
ModelData
mergeModels(ModelData... models)
ModelData
mergeModels(ModelData[] models, int length)
WidgetNode
openInterface(int componentId, int interfaceId, int modalMode)
Open an interface.void
openWorldHopper()
Opens in-game world hopper interfacevoid
playSoundEffect(int id)
Play a sound effect at the player's current location.void
playSoundEffect(int id, int volume)
Plays a sound effect, even if the player's sound effect volume is muted.void
playSoundEffect(int id, int x, int y, int range)
Play a sound effect from some point in the world.void
playSoundEffect(int id, int x, int y, int range, int delay)
Play a sound effect from some point in the world.void
queueChangedSkill(Skill skill)
void
queueChangedVarp(int varp)
Mark the given varp as changed, causing var listeners to be triggered next tickvoid
refreshChat()
Refreshes the chat.void
resetHealthBarCaches()
void
runScript(Object... args)
Executes a client script from the cache This method must be ran on the client thread and is not reentrant This method is shorthand forclient.createScriptEvent(args).run()
void
setAllWidgetsAreOpTargetable(boolean value)
Makes all widgets behave as if they areWidgetConfig.WIDGET_USE_TARGET
void
setAnimationInterpolationFilter(IntPredicate filter)
void
setCameraFocalPointX(double x)
Sets the camera focus point x.void
setCameraFocalPointY(double y)
Sets the camera focus point y.void
setCameraFocalPointZ(double z)
Sets the camera focus point z.void
setCameraMode(int mode)
Set the camera modevoid
setCameraMouseButtonMask(int mask)
Sets the mask for which mouse buttons control the camera.void
setCameraPitchRelaxerEnabled(boolean enabled)
Sets whether the camera pitch can exceed the normal limits set by the RuneScape client.void
setCameraPitchTarget(int cameraPitchTarget)
Set the target camera pitchvoid
setCameraShakeDisabled(boolean disabled)
Set whether to disable camera shaking effects at e.g.void
setCameraSpeed(float speed)
Sets the camera speedvoid
setCameraYawTarget(int cameraYawTarget)
Set the target camera yawvoid
setCompass(SpritePixels spritePixels)
Sets the compass sprite.void
setDraggedOnWidget(Widget widget)
Sets the widget that is being dragged on.void
setDraw2DMask(int mask)
Sets the current draw2D mask.void
setDrawCallbacks(DrawCallbacks drawCallbacks)
void
setExpandedMapLoading(int chunks)
void
setFreeCameraSpeed(int speed)
Sets the normal moving speed when using oculus orb (default value is 12)void
setGameState(GameState gameState)
Sets the current game statevoid
setGeSearchResultCount(int count)
Sets the result count for GE searchvoid
setGeSearchResultIds(short[] ids)
Sets the array of item ids for GE searchvoid
setGeSearchResultIndex(int index)
Sets the starting index in the item id array for GE searchvoid
setGpuFlags(int gpuflags)
void
setHintArrow(LocalPoint point)
Sets the hint arrow to the passsed pointvoid
setHintArrow(WorldPoint point)
Sets a hint arrow to point to the passed location.void
setHintArrow(NPC npc)
Sets a hint arrow to point to the passed NPC.void
setHintArrow(Player player)
Sets a hint arrow to point to the passed player.void
setIdleTimeout(int ticks)
Set the amount of time until the client automatically logs out due to idle input.void
setIntStackSize(int stackSize)
Sets the length of the cs2 vm's int stackvoid
setInventoryDragDelay(int delay)
Deprecated.void
setInvertPitch(boolean invertPitch)
Sets if the moving the camera vertically should be backwardsvoid
setInvertYaw(boolean invertYaw)
Sets if the moving the camera horizontally should be backwardsvoid
setLoginScreen(SpritePixels pixels)
Sets the image to be used for the login screen, provided as SpritePixels If the image is larger than half the width of fixed mode, it won't get mirrored to the other side of the screenvoid
setMenuEntries(MenuEntry[] entries)
Deprecated.void
setMenuScroll(int scroll)
Set the number of entries the currently open menu has been scrolled down.void
setMinimapTileDrawer(TileFunction drawTile)
Sets a callback to override the drawing of tiles on the minimap.void
setMinimapZoom(boolean minimapZoom)
Set whether minimap zoom is enabledvoid
setMinimapZoom(double zoom)
Set the number of pixels per tile on the minimap.void
setModIcons(IndexedSprite[] modIcons)
Replaces the current mod icons with a new array.void
setMusicVolume(int volume)
Sets the music volumevoid
setOculusOrbNormalSpeed(int speed)
Deprecated.void
setOculusOrbState(int state)
Deprecated.void
setOtp(String otp)
Sets the 6 digit pin used for authenticator on login screen.void
setPassword(String password)
Sets the password on login screen.void
setScalingFactor(int factor)
Sets the scaling factor when scaling resizable mode.void
setShouldRenderLoginScreenFire(boolean val)
Sets whether the flames on the login screen should be renderedvoid
setSkyboxColor(int skyboxColor)
Sets the RGB color of the skyboxvoid
setStretchedEnabled(boolean state)
Sets the client stretched mode state.void
setStretchedFast(boolean state)
Sets whether to use fast rendering techniques when stretching the canvas.void
setStretchedIntegerScaling(boolean state)
Sets whether to force integer scale factor by rounding scale factors towardszero
when stretching.void
setStretchedKeepAspectRatio(boolean state)
Sets whether to keep aspect ratio when stretching.void
setStringStackSize(int stackSize)
Sets the length of the cs2 vm's string stackvoid
setTickCount(int tickCount)
Sets the current server tick count.void
setUnlockedFps(boolean unlock)
void
setUnlockedFpsTarget(int fps)
void
setUsername(String name)
Sets the current logged in username.void
setVarbit(int varbit, int value)
Sets the value of a varbitvoid
setVarbitValue(int[] varps, int varbit, int value)
Sets the value of a given variable.void
setVarcIntValue(int var, int value)
Sets a VarClientInt to the passed valuevoid
setVarcStrValue(int var, String value)
Sets a VarClientString to the passed valuevoid
setWidgetSelected(boolean selected)
Sets if a widget is in target modevoid
stopNow()
Causes the client to shutdown.-
Methods inherited from interface net.runelite.api.GameEngine
getClientThread, isClientThread, resizeCanvas
-
Methods inherited from interface com.jagex.oldscape.pub.OAuthApi
getAccountHash
-
-
-
-
Field Detail
-
DRAW_2D_ALL
static final int DRAW_2D_ALL
Draw all 2D extras. This is the default.- See Also:
- Constant Field Values
-
DRAW_2D_NONE
static final int DRAW_2D_NONE
Hide all 2D extras.- See Also:
- Constant Field Values
-
DRAW_2D_OVERHEAD_TEXT
static final int DRAW_2D_OVERHEAD_TEXT
Render overhead text.- See Also:
- Constant Field Values
-
DRAW_2D_OTHERS
static final int DRAW_2D_OTHERS
Render elements not otherwise specified in this bitflag.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCallbacks
Callbacks getCallbacks()
The injected client invokes these callbacks to send events to us
-
getDrawCallbacks
DrawCallbacks getDrawCallbacks()
The injected client invokes these callbacks for scene drawing, which is used by the gpu plugin to override the client's normal scene drawing code
-
setDrawCallbacks
void setDrawCallbacks(DrawCallbacks drawCallbacks)
-
getBuildID
String getBuildID()
-
getBoostedSkillLevel
int getBoostedSkillLevel(Skill skill)
Gets the current modified level of a skill.- Parameters:
skill
- the skill- Returns:
- the modified skill level
-
getRealSkillLevel
int getRealSkillLevel(Skill skill)
Gets the real level of a skill.- Parameters:
skill
- the skill- Returns:
- the skill level
-
getTotalLevel
int getTotalLevel()
Calculates the total level from real skill levels.- Returns:
- the total level
-
addChatMessage
MessageNode addChatMessage(ChatMessageType type, String name, String message, String sender)
Adds a new chat message to the chatbox.- Parameters:
type
- the type of messagename
- the name of the player that sent the messagemessage
- the message contentssender
- the sender/channel name- Returns:
- the message node for the message
-
addChatMessage
MessageNode addChatMessage(ChatMessageType type, String name, String message, String sender, boolean postEvent)
Adds a new chat message to the chatbox.- Parameters:
type
- the type of messagename
- the name of the player that sent the messagemessage
- the message contentssender
- the sender/channel namepostEvent
- whether to post the chat message event- Returns:
- the message node for the message
-
getGameState
GameState getGameState()
Gets the current game state.- Returns:
- the game state
-
setGameState
void setGameState(GameState gameState)
Sets the current game state- Parameters:
gameState
-
-
stopNow
void stopNow()
Causes the client to shutdown. It is faster thanApplet.stop()
because it doesn't wait for 4000ms. This will callSystem.exit(int)
when it is done
-
getLauncherDisplayName
@Nullable String getLauncherDisplayName()
Gets the display name of the active account when launched from the Jagex launcher.- Returns:
- The active account's display name, or
null
if not launched from the Jagex launcher
-
getUsername
@Deprecated String getUsername()
Deprecated.DEPRECATED. See getAccountHash instead. Gets the current logged in username.- Returns:
- the logged in username
- See Also:
OAuthApi.getAccountHash()
-
setUsername
void setUsername(String name)
Sets the current logged in username.- Parameters:
name
- the logged in username
-
setPassword
void setPassword(String password)
Sets the password on login screen.- Parameters:
password
- the login screen password
-
setOtp
void setOtp(String otp)
Sets the 6 digit pin used for authenticator on login screen.- Parameters:
otp
- one time password
-
getCurrentLoginField
int getCurrentLoginField()
Gets currently selected login field. 0 is username, and 1 is password.- Returns:
- currently selected login field
-
getLoginIndex
int getLoginIndex()
Gets index of current login state. 2 is username/password form, 4 is authenticator form- Returns:
- current login state index
-
getAccountType
@Deprecated AccountType getAccountType()
Deprecated.see Varbits#ACCOUNT_TYPEGets the account type of the logged in player.- Returns:
- the account type
-
getCanvas
Canvas getCanvas()
Description copied from interface:GameEngine
Gets the canvas that contains everything.- Specified by:
getCanvas
in interfaceGameEngine
- Returns:
- the game canvas
-
getFPS
int getFPS()
Gets the current FPS (frames per second).- Returns:
- the FPS
-
getCameraX
int getCameraX()
Gets the x-axis coordinate of the camera.This value is a local coordinate value similar to
getLocalDestinationLocation()
.- Returns:
- the camera x coordinate
-
getCameraFpX
double getCameraFpX()
Floating point camera position, x-axis- Returns:
- See Also:
getCameraX()
-
getCameraY
int getCameraY()
Gets the y-axis coordinate of the camera.This value is a local coordinate value similar to
getLocalDestinationLocation()
.- Returns:
- the camera y coordinate
-
getCameraFpY
double getCameraFpY()
Floating point camera position, y-axis- Returns:
- See Also:
getCameraY()
-
getCameraZ
int getCameraZ()
Gets the z-axis coordinate of the camera.This value is a local coordinate value similar to
getLocalDestinationLocation()
.- Returns:
- the camera z coordinate
-
getCameraFpZ
double getCameraFpZ()
Floating point camera position, z-axis- Returns:
- See Also:
getCameraZ()
-
getCameraPitch
int getCameraPitch()
Gets the pitch of the camera.The value returned by this method is measured in JAU, or Jagex Angle Unit, which is 1/1024 of a revolution.
- Returns:
- the camera pitch
-
getCameraFpPitch
double getCameraFpPitch()
Floating point camera pitch.- Returns:
- See Also:
getCameraPitch()
-
getCameraYaw
int getCameraYaw()
Gets the yaw of the camera.- Returns:
- the camera yaw
-
getCameraFpYaw
double getCameraFpYaw()
Floating point camera yaw- Returns:
- See Also:
getCameraYaw()
-
getWorld
int getWorld()
Gets the current world number of the logged in player.- Returns:
- the logged in world number
-
getCanvasHeight
int getCanvasHeight()
Gets the canvas height- Returns:
-
getCanvasWidth
int getCanvasWidth()
Gets the canvas width- Returns:
-
getViewportHeight
int getViewportHeight()
Gets the height of the viewport.- Returns:
- the viewport height
-
getViewportWidth
int getViewportWidth()
Gets the width of the viewport.- Returns:
- the viewport width
-
getViewportXOffset
int getViewportXOffset()
Gets the x-axis offset of the viewport.- Returns:
- the x-axis offset
-
getViewportYOffset
int getViewportYOffset()
Gets the y-axis offset of the viewport.- Returns:
- the y-axis offset
-
getScale
int getScale()
Gets the scale of the world (zoom value).- Returns:
- the world scale
-
getMouseCanvasPosition
Point getMouseCanvasPosition()
Gets the current position of the mouse on the canvas.- Returns:
- the mouse canvas position
-
getLocalPlayer
Player getLocalPlayer()
Gets the logged in player instance.- Returns:
- the logged in player
-
getFollower
@Nullable NPC getFollower()
Get the local player's follower, such as a pet- Returns:
-
getItemDefinition
@Nonnull ItemComposition getItemDefinition(int id)
Gets the item composition corresponding to an items ID.- Parameters:
id
- the item ID- Returns:
- the corresponding item composition
- See Also:
ItemID
-
createItemSprite
@Nullable SpritePixels createItemSprite(int itemId, int quantity, int border, int shadowColor, int stackable, boolean noted, int scale)
Creates an item icon sprite with passed variables.- Parameters:
itemId
- the item IDquantity
- the item quantityborder
- whether to draw a bordershadowColor
- the shadow colorstackable
- whether the item is stackablenoted
- whether the item is notedscale
- the scale of the sprite- Returns:
- the created sprite
-
getItemModelCache
NodeCache getItemModelCache()
Get the item model cache. These models are used for drawing widgets of typeWidgetType.MODEL
and inventory item icons- Returns:
-
getItemSpriteCache
NodeCache getItemSpriteCache()
Get the item sprite cache. These are 2d SpritePixels which are used to raster item images on the inventory and on widgets of typeWidgetType.GRAPHIC
- Returns:
-
getSprites
@Nullable SpritePixels[] getSprites(IndexDataBase source, int archiveId, int fileId)
Loads and creates the sprite images of the passed archive and file IDs.- Parameters:
source
- the sprite indexarchiveId
- the sprites archive IDfileId
- the sprites file ID- Returns:
- the sprite image of the file
-
getIndexSprites
IndexDataBase getIndexSprites()
Gets the sprite index.
-
getIndexScripts
IndexDataBase getIndexScripts()
Gets the script index.
-
getIndexConfig
IndexDataBase getIndexConfig()
Gets the config index.
-
getIndex
IndexDataBase getIndex(int id)
Gets an index by id
-
getMouseCurrentButton
int getMouseCurrentButton()
Gets the current mouse button that is pressed.- Returns:
- the pressed mouse button
-
isDraggingWidget
boolean isDraggingWidget()
Checks whether a widget is currently being dragged.- Returns:
- true if dragging a widget, false otherwise
-
getDraggedWidget
@Nullable Widget getDraggedWidget()
Gets the widget currently being dragged.- Returns:
- the dragged widget, null if not dragging any widget
-
getDraggedOnWidget
@Nullable Widget getDraggedOnWidget()
Gets the widget that is being dragged on.The widget being dragged has the
WidgetConfig.DRAG
flag set, and is the widget currently under the dragged widget.- Returns:
- the dragged on widget, null if not dragging any widget
-
setDraggedOnWidget
void setDraggedOnWidget(Widget widget)
Sets the widget that is being dragged on.- Parameters:
widget
- the new dragged on widget
-
getDragTime
int getDragTime()
Get the number of client cycles the current dragged widget has been dragged for.- Returns:
-
getTopLevelInterfaceId
@Interface int getTopLevelInterfaceId()
Gets Interface ID of the root widget
-
getWidgetRoots
Widget[] getWidgetRoots()
Gets the root widgets.- Returns:
- the root widgets
-
getWidget
@Nullable @Deprecated Widget getWidget(WidgetInfo widget)
Deprecated.Gets a widget corresponding to the passed widget info.- Parameters:
widget
- the widget info- Returns:
- the widget
-
getWidget
@Nullable Widget getWidget(@Interface int groupId, int childId)
Gets a widget by its raw group ID and child ID.- Parameters:
groupId
- the group IDchildId
- the child widget ID- Returns:
- the widget corresponding to the group and child pair
-
getWidget
@Nullable Widget getWidget(@Component int componentId)
Gets a widget by its component id.- Parameters:
componentId
- the component id
-
getWidgetPositionsX
int[] getWidgetPositionsX()
Gets an array containing the x-axis canvas positions of all widgets.- Returns:
- array of x-axis widget coordinates
-
getWidgetPositionsY
int[] getWidgetPositionsY()
Gets an array containing the y-axis canvas positions of all widgets.- Returns:
- array of y-axis widget coordinates
-
getEnergy
int getEnergy()
Gets the current run energy of the logged in player.- Returns:
- the run energy in units of 1/100th of an percentage
-
getWeight
int getWeight()
Gets the current weight of the logged in player.- Returns:
- the weight
-
getPlayerOptions
String[] getPlayerOptions()
Gets an array of options that can currently be used on other players.For example, if the player is in a PVP area the "Attack" option will become available in the array. Otherwise, it won't be there.
- Returns:
- an array of options
-
getPlayerOptionsPriorities
boolean[] getPlayerOptionsPriorities()
Gets an array of whether an option is enabled or not.- Returns:
- the option priorities
-
getPlayerMenuTypes
int[] getPlayerMenuTypes()
Gets an array of player menu types.- Returns:
- the player menu types
-
getWorldList
World[] getWorldList()
Gets a list of all RuneScape worlds.- Returns:
- world list
-
getMenu
@Nonnull Menu getMenu()
Get the client menu.
-
createMenuEntry
@Deprecated MenuEntry createMenuEntry(int idx)
Deprecated.Create a new menu entry- Parameters:
idx
- the index to create the menu entry at. Accepts negative indexes eg. -1 inserts at the end.- Returns:
- the newly created menu entry
- See Also:
getMenu()
,Menu.createMenuEntry(int)
-
getMenuEntries
@Deprecated MenuEntry[] getMenuEntries()
Deprecated.Gets an array of currently open right-click menu entries that can be clicked and activated.- Returns:
- array of open menu entries
- See Also:
getMenu()
,Menu.getMenuEntries()
-
setMenuEntries
@Deprecated void setMenuEntries(MenuEntry[] entries)
Deprecated.Sets the array of open menu entries.This method should typically be used in the context of the
MenuOpened
event, since setting the menu entries will be overwritten the next frame- Parameters:
entries
- new array of open menu entries- See Also:
getMenu()
,Menu.setMenuEntries(MenuEntry[])
-
isMenuOpen
boolean isMenuOpen()
Checks whether a right-click menu is currently open.- Returns:
- true if a menu is open, false otherwise
-
isMenuScrollable
boolean isMenuScrollable()
Returns whether the currently open menu is scrollable.- Returns:
-
getMenuScroll
int getMenuScroll()
Get the number of entries the currently open menu has been scrolled down.- Returns:
-
setMenuScroll
void setMenuScroll(int scroll)
Set the number of entries the currently open menu has been scrolled down.- Parameters:
scroll
-
-
getMenuX
@Deprecated int getMenuX()
Deprecated.Get the menu x location. Only valid if the menu is open.- Returns:
- the menu x location
- See Also:
Menu.getMenuX()
-
getMenuY
@Deprecated int getMenuY()
Deprecated.Get the menu y location. Only valid if the menu is open.- Returns:
- the menu y location
- See Also:
Menu.getMenuY()
-
getMenuHeight
@Deprecated int getMenuHeight()
Deprecated.Get the menu height. Only valid if the menu is open.- Returns:
- the menu height
- See Also:
Menu.getMenuHeight()
-
getMenuWidth
@Deprecated int getMenuWidth()
Deprecated.Get the menu width. Only valid if the menu is open.- Returns:
- the menu width
- See Also:
Menu.getMenuWidth()
-
getMapAngle
@Deprecated int getMapAngle()
Deprecated.Gets the angle of the map, or target camera yaw.- Returns:
- the map angle
- See Also:
getCameraYawTarget()
-
isResized
boolean isResized()
Checks whether the client window is currently resized.- Returns:
- true if resized, false otherwise
-
getRevision
int getRevision()
Gets the client revision number.- Returns:
- the revision
-
getVarps
@VisibleForDevtools int[] getVarps()
Gets an array of all client varplayers.- Returns:
- local player variables
-
getServerVarps
@VisibleForDevtools int[] getServerVarps()
Get an array of all server varplayers. These vars are only modified by the server, and so represent the server's idea of the varp values.- Returns:
- the server varps
-
getVarcMap
@VisibleForDevtools Map<Integer,Object> getVarcMap()
Gets an array of all client variables.
-
getVar
@Deprecated int getVar(@Varbit int varbit)
Deprecated.Gets a value corresponding to the passed varbit.- Parameters:
varbit
- the varbit id- Returns:
- the value
- See Also:
getVarbitValue(int)
-
getVarbitValue
int getVarbitValue(@Varbit int varbit)
Gets the value of the given varbit.- Parameters:
varbit
- the varbit id- Returns:
- the value
-
getServerVarbitValue
int getServerVarbitValue(@Varbit int varbit)
Gets the value of the given varbit. This returns the server's idea of the value, not the client's. This is specifically the last value set by the server regardless of changes to the var by the client.- Parameters:
varbit
- the varbit id- Returns:
- the value
-
getVarpValue
int getVarpValue(@Varp int varpId)
Gets the value of a given VarPlayer.- Parameters:
varpId
- the VarPlayer id- Returns:
- the value
-
getServerVarpValue
int getServerVarpValue(@Varp int varpId)
Gets the value of a given VarPlayer. This returns the server's idea of the value, not the client's. This is specifically the last value set by the server regardless of changes to the var by the client.- Parameters:
varpId
- the VarPlayer id- Returns:
- the value
-
getVarcIntValue
int getVarcIntValue(@VarCInt int var)
Gets the value of a given VarClientInt- Parameters:
var
- theVarClientInt
- Returns:
- the value
-
getVarcStrValue
String getVarcStrValue(@VarCStr int var)
Gets the value of a given VarClientStr- Parameters:
var
- theVarClientStr
- Returns:
- the value
-
setVarcStrValue
void setVarcStrValue(@VarCStr int var, String value)
Sets a VarClientString to the passed value- Parameters:
var
- theVarClientStr
value
- the new value
-
setVarcIntValue
void setVarcIntValue(@VarCInt int var, int value)
Sets a VarClientInt to the passed value- Parameters:
var
- theVarClientInt
value
- the new value
-
setVarbit
void setVarbit(@Varbit int varbit, int value)
Sets the value of a varbit- Parameters:
varbit
- the varbit idvalue
- the new value
-
getVarbit
@VisibleForDevtools @Nullable VarbitComposition getVarbit(int id)
Gets the varbit composition for a given varbit id- Parameters:
id
-- Returns:
-
getVarbitValue
@VisibleForDevtools int getVarbitValue(int[] varps, @Varbit int varbitId)
Gets the value of a given variable.- Parameters:
varps
- passed varbitsvarbitId
- the variable ID- Returns:
- the value
- See Also:
Varbits
-
setVarbitValue
@VisibleForDevtools void setVarbitValue(int[] varps, @Varbit int varbit, int value)
Sets the value of a given variable.- Parameters:
varps
- passed varbitsvarbit
- the variablevalue
- the value- See Also:
Varbits
-
queueChangedVarp
void queueChangedVarp(@Varp int varp)
Mark the given varp as changed, causing var listeners to be triggered next tick- Parameters:
varp
-
-
openInterface
WidgetNode openInterface(int componentId, int interfaceId, int modalMode)
Open an interface.- Parameters:
componentId
- component id to open the interface atinterfaceId
- the interface to openmodalMode
- seeWidgetModalMode
- Returns:
- the
WidgetNode
for the interface. This should be closed later by calling {closeInterface(WidgetNode, boolean)
. - Throws:
IllegalStateException
- if the component does not exist or it not a layer, or the interface is already open on a different component
-
closeInterface
void closeInterface(WidgetNode interfaceNode, boolean unload)
Close an interface- Parameters:
interfaceNode
- theWidgetNode
linking the interface into the component treeunload
- whether to null the client's widget table- Throws:
IllegalArgumentException
- if the interfaceNode is not linked into the component tree
-
getWidgetFlags
HashTable<IntegerNode> getWidgetFlags()
Gets the widget flags table.- Returns:
- the widget flags table
-
getComponentTable
HashTable<WidgetNode> getComponentTable()
Gets the widget node component table.- Returns:
- the widget node component table
- See Also:
WidgetNode
-
getGrandExchangeOffers
GrandExchangeOffer[] getGrandExchangeOffers()
Gets an array of current grand exchange offers.- Returns:
- all grand exchange offers
-
isPrayerActive
boolean isPrayerActive(Prayer prayer)
Checks whether or not a prayer is currently active.- Parameters:
prayer
- the prayer- Returns:
- true if the prayer is active, false otherwise
-
getSkillExperience
int getSkillExperience(Skill skill)
Gets the current experience towards a skill.- Parameters:
skill
- the skill- Returns:
- the experience
-
getOverallExperience
long getOverallExperience()
Get the total experience of the player- Returns:
-
refreshChat
void refreshChat()
Refreshes the chat.
-
getChatLineMap
Map<Integer,ChatLineBuffer> getChatLineMap()
Gets the map of chat buffers.- Returns:
- the chat buffers
-
getMessages
IterableHashTable<MessageNode> getMessages()
Map of message node id to message node- Returns:
- the map
-
getObjectDefinition
ObjectComposition getObjectDefinition(int objectId)
Gets the object composition corresponding to an objects ID.- Parameters:
objectId
- the object ID- Returns:
- the corresponding object composition
- See Also:
ObjectID
-
getNpcDefinition
NPCComposition getNpcDefinition(int npcId)
Gets the NPC composition corresponding to an NPCs ID.- Parameters:
npcId
- the npc ID- Returns:
- the corresponding NPC composition
- See Also:
NpcID
-
getStructComposition
StructComposition getStructComposition(int structID)
Gets theStructComposition
for a given struct ID- See Also:
StructID
-
getStructCompositionCache
NodeCache getStructCompositionCache()
Gets the client's cache of in memory struct compositions
-
getDBTableField
Object[] getDBTableField(int rowID, int column, int tupleIndex)
Gets a entry out of a DBTable Row
-
getDBRowConfig
DBRowConfig getDBRowConfig(int rowID)
-
getDBRowsByValue
List<Integer> getDBRowsByValue(int table, int column, int tupleIndex, Object value)
Uses an index to find rows containing a certain value in a column. An index must exist for this column.
-
getMapElementConfig
MapElementConfig getMapElementConfig(int id)
Get a map element config by id- Parameters:
id
- the id
-
getMapScene
IndexedSprite[] getMapScene()
Gets a sprite of the map scene- Returns:
- the sprite
-
getMapDots
SpritePixels[] getMapDots()
Gets an array of currently drawn mini-map dots.- Returns:
- all mini-map dots
-
getGameCycle
int getGameCycle()
Gets the local clients game cycle.Note: This value is incremented every 20ms.
- Returns:
- the game cycle
-
getMapIcons
SpritePixels[] getMapIcons()
Gets an array of current map icon sprites.- Returns:
- the map icons
-
getModIcons
IndexedSprite[] getModIcons()
Gets an array of mod icon sprites.- Returns:
- the mod icons
-
setModIcons
void setModIcons(IndexedSprite[] modIcons)
Replaces the current mod icons with a new array.- Parameters:
modIcons
- the new mod icons
-
createIndexedSprite
IndexedSprite createIndexedSprite()
Creates an empty indexed sprite.- Returns:
- the sprite
-
createSpritePixels
SpritePixels createSpritePixels(int[] pixels, int width, int height)
Creates a sprite image with given width and height containing the pixels.- Parameters:
pixels
- the pixelswidth
- the widthheight
- the height- Returns:
- the sprite image
-
getLocalDestinationLocation
@Nullable LocalPoint getLocalDestinationLocation()
Gets the location of the local player.- Returns:
- the local player location
-
createRuneLiteObject
RuneLiteObject createRuneLiteObject()
Creates a RuneLiteObject, which is a modifiedGraphicsObject
-
loadModelData
@Nullable ModelData loadModelData(int id)
Loads an unlit model from the cache. The returned model shares data such as faces, face colors, face transparencies, and vertex points with other models. If you want to mutate these you MUST call the relevantcloneX
method.- Parameters:
id
- the ID of the model- Returns:
- the model or null if it is loading or nonexistent
- See Also:
ModelData.cloneColors()
-
loadModel
@Nullable Model loadModel(int id)
Loads and lights a model from the cache This is equivalent toloadModelData(id).light()
- Parameters:
id
- the ID of the model- Returns:
- the model or null if it is loading or nonexistent
-
loadModel
@Nullable Model loadModel(int id, short[] colorToFind, short[] colorToReplace)
Loads a model from the cache and also recolors it- Parameters:
id
- the ID of the modelcolorToFind
- array of hsl color values to find in the model to replacecolorToReplace
- array of hsl color values to replace in the model- Returns:
- the model or null if it is loading or nonexistent
-
loadAnimation
Animation loadAnimation(int id)
Loads an animation from the cache- Parameters:
id
- the ID of the animation. Any int is allowed, but implementations in the client should be defined inAnimationID
-
getMusicVolume
int getMusicVolume()
Gets the music volume- Returns:
- volume 0-255 inclusive
-
setMusicVolume
void setMusicVolume(int volume)
Sets the music volume- Parameters:
volume
- 0-255 inclusive
-
playSoundEffect
void playSoundEffect(int id)
Play a sound effect at the player's current location. This is how UI, and player-generated (e.g. mining, woodcutting) sound effects are normally played.- Parameters:
id
- the ID of the sound to play. Any int is allowed, but seeSoundEffectID
for some common ones
-
playSoundEffect
void playSoundEffect(int id, int x, int y, int range)
Play a sound effect from some point in the world.- Parameters:
id
- the ID of the sound to play. Any int is allowed, but seeSoundEffectID
for some common onesx
- the ground coordinate on the x axisy
- the ground coordinate on the y axisrange
- the number of tiles away that the sound can be heard from
-
playSoundEffect
void playSoundEffect(int id, int x, int y, int range, int delay)
Play a sound effect from some point in the world.- Parameters:
id
- the ID of the sound to play. Any int is allowed, but seeSoundEffectID
for some common onesx
- the ground coordinate on the x axisy
- the ground coordinate on the y axisrange
- the number of tiles away that the sound can be heard fromdelay
- the amount of frames before the sound starts playing
-
playSoundEffect
void playSoundEffect(int id, int volume)
Plays a sound effect, even if the player's sound effect volume is muted.- Parameters:
id
- the ID of the sound effect -SoundEffectID
volume
- the volume to play the sound effect at, seeSoundEffectVolume
for values used in the settings interface. if the sound effect volume is not muted, uses the set volume
-
getBufferProvider
BufferProvider getBufferProvider()
Gets the clients graphic buffer provider.- Returns:
- the buffer provider
-
getMouseIdleTicks
int getMouseIdleTicks()
Gets the amount of client ticks since the last mouse movement occurred.- Returns:
- amount of idle mouse ticks
- See Also:
Constants.CLIENT_TICK_LENGTH
-
getMouseLastPressedMillis
long getMouseLastPressedMillis()
Gets the time at which the last mouse press occurred in milliseconds since the UNIX epoch.
-
getKeyboardIdleTicks
int getKeyboardIdleTicks()
Gets the amount of client ticks since the last keyboard press occurred.- Returns:
- amount of idle keyboard ticks
- See Also:
Constants.CLIENT_TICK_LENGTH
-
changeMemoryMode
void changeMemoryMode(boolean lowMemory)
Changes how game behaves based on memory mode. Low memory mode skips drawing of all floors and renders ground textures in low quality.- Parameters:
lowMemory
- if we are running in low memory mode or not
-
getItemContainer
@Nullable ItemContainer getItemContainer(InventoryID inventory)
Get the item container for an inventory.- Parameters:
inventory
- the inventory type- Returns:
- the item container
- See Also:
InventoryID
-
getItemContainer
@Nullable ItemContainer getItemContainer(int id)
Get an item container by id- Parameters:
id
- the inventory id- Returns:
- the item container
- See Also:
InventoryID
-
getItemContainers
HashTable<ItemContainer> getItemContainers()
Get all item containers- Returns:
-
getIntStackSize
int getIntStackSize()
Gets the length of the cs2 vm's int stack
-
setIntStackSize
void setIntStackSize(int stackSize)
Sets the length of the cs2 vm's int stack
-
getIntStack
int[] getIntStack()
Gets the cs2 vm's int stack
-
getStringStackSize
int getStringStackSize()
Gets the length of the cs2 vm's string stack
-
setStringStackSize
void setStringStackSize(int stackSize)
Sets the length of the cs2 vm's string stack
-
getStringStack
String[] getStringStack()
Gets the cs2 vm's string stack
-
getArraySizes
int getArraySizes(int arrayId)
Get the size of one of the cs2 vm's arrays.- Parameters:
arrayId
- the array id- Returns:
-
getArray
int[] getArray(int arrayId)
Get one of the cs2 vm's arrays. UsegetArraySizes(int)
to get the array length.- Parameters:
arrayId
- the array id- Returns:
-
getScriptActiveWidget
Widget getScriptActiveWidget()
Gets the cs2 vm's active widget This is used for allcc_*
operations with a0
operand
-
getScriptDotWidget
Widget getScriptDotWidget()
Gets the cs2 vm's "dot" widget This is used for all.cc_*
operations with a1
operand
-
isFriended
boolean isFriended(String name, boolean mustBeLoggedIn)
Checks whether a player is on the friends list.- Parameters:
name
- the name of the playermustBeLoggedIn
- if they player is online- Returns:
- true if the player is friends
-
getFriendsChatManager
@Nullable FriendsChatManager getFriendsChatManager()
Retrieve the friends chat manager- Returns:
-
getFriendContainer
FriendContainer getFriendContainer()
Retrieve the nameable container containing friends- Returns:
-
getIgnoreContainer
NameableContainer<Ignore> getIgnoreContainer()
Retrieve the nameable container containing ignores- Returns:
-
getPreferences
Preferences getPreferences()
Gets the clients saved preferences.- Returns:
- the client preferences
-
getCameraYawTarget
int getCameraYawTarget()
Get the target camera yaw. The target yaw is the yaw the camera should use based on player input. The actual camera yaw, fromgetCameraYaw()
, is what the camera is actually using, which can be overridden by eg. cutscenes.- Returns:
- the target camera yaw
-
getCameraPitchTarget
int getCameraPitchTarget()
Get the target camera pitch The target pitch is the pitch the camera should use based on player input. The actual camera pitch, fromgetCameraPitch()
()}, is what the camera is actually using, which can be overridden by eg. cutscenes.- Returns:
- the target camera pitch
-
setCameraYawTarget
void setCameraYawTarget(int cameraYawTarget)
Set the target camera yaw- Parameters:
cameraYawTarget
- target camera yaw
-
setCameraPitchTarget
void setCameraPitchTarget(int cameraPitchTarget)
Set the target camera pitch- Parameters:
cameraPitchTarget
- target camera pitch
-
setCameraSpeed
void setCameraSpeed(float speed)
Sets the camera speed- Parameters:
speed
-
-
setCameraMouseButtonMask
void setCameraMouseButtonMask(int mask)
Sets the mask for which mouse buttons control the camera. Use 0 for the default behavior of mouse button 4 if "middle mouse moves camera" is on.- Parameters:
mask
-
-
setCameraPitchRelaxerEnabled
void setCameraPitchRelaxerEnabled(boolean enabled)
Sets whether the camera pitch can exceed the normal limits set by the RuneScape client.- Parameters:
enabled
- new camera pitch relaxer value
-
setInvertYaw
void setInvertYaw(boolean invertYaw)
Sets if the moving the camera horizontally should be backwards
-
setInvertPitch
void setInvertPitch(boolean invertPitch)
Sets if the moving the camera vertically should be backwards
-
getRenderOverview
@Deprecated RenderOverview getRenderOverview()
Deprecated.Gets the world map overview.- Returns:
- the world map overview
- See Also:
getWorldMap()
-
getWorldMap
WorldMap getWorldMap()
Get the world map
-
isStretchedEnabled
boolean isStretchedEnabled()
Checks whether the client is in stretched mode.- Returns:
- true if the client is in stretched mode, false otherwise
-
setStretchedEnabled
void setStretchedEnabled(boolean state)
Sets the client stretched mode state.- Parameters:
state
- new stretched mode state
-
isStretchedFast
boolean isStretchedFast()
Checks whether the client is using fast rendering techniques when stretching the canvas.- Returns:
- true if stretching is fast rendering, false otherwise
-
setStretchedFast
void setStretchedFast(boolean state)
Sets whether to use fast rendering techniques when stretching the canvas.- Parameters:
state
- new fast rendering state
-
setStretchedIntegerScaling
void setStretchedIntegerScaling(boolean state)
Sets whether to force integer scale factor by rounding scale factors towardszero
when stretching.- Parameters:
state
- new integer scaling state
-
setStretchedKeepAspectRatio
void setStretchedKeepAspectRatio(boolean state)
Sets whether to keep aspect ratio when stretching.- Parameters:
state
- new keep aspect ratio state
-
setScalingFactor
void setScalingFactor(int factor)
Sets the scaling factor when scaling resizable mode.- Parameters:
factor
- new scaling factor
-
invalidateStretching
void invalidateStretching(boolean resize)
Invalidates cached dimensions that are used for stretching and scaling.- Parameters:
resize
- true to tell the game to resize the canvas on the next frame, false otherwise.
-
getStretchedDimensions
Dimension getStretchedDimensions()
Gets the current stretched dimensions of the client.- Returns:
- the stretched dimensions
-
getRealDimensions
Dimension getRealDimensions()
Gets the real dimensions of the client before being stretched.- Returns:
- the real dimensions
-
changeWorld
void changeWorld(World world)
Changes the selected world to log in to.Note: this method will have no effect unless
GameState
isGameState.LOGIN_SCREEN
.- Parameters:
world
- the world to switch to
-
createWorld
World createWorld()
Creates a new instance of a world.
-
drawInstanceMap
SpritePixels drawInstanceMap(int z)
Draws an instance map for the current viewed plane.- Parameters:
z
- the plane- Returns:
- the map sprite
-
runScript
void runScript(Object... args)
Executes a client script from the cache This method must be ran on the client thread and is not reentrant This method is shorthand forclient.createScriptEvent(args).run()
- Parameters:
args
- the script id, then any additional arguments to execute the script with- See Also:
ScriptID
-
createScriptEvent
ScriptEvent createScriptEvent(Object... args)
Creates a blank ScriptEvent for executing a ClientScript2 script- Parameters:
args
- the script id, then any additional arguments to execute the script with- See Also:
ScriptID
-
hasHintArrow
boolean hasHintArrow()
Checks whether or not there is any active hint arrow.- Returns:
- true if there is a hint arrow, false otherwise
-
getHintArrowType
int getHintArrowType()
Gets the type of hint arrow currently displayed.- Returns:
- the hint arrow type
-
clearHintArrow
void clearHintArrow()
Clears the current hint arrow.
-
setHintArrow
void setHintArrow(WorldPoint point)
Sets a hint arrow to point to the passed location.- Parameters:
point
- the location
-
setHintArrow
void setHintArrow(LocalPoint point)
Sets the hint arrow to the passsed point- Parameters:
point
-
-
setHintArrow
void setHintArrow(Player player)
Sets a hint arrow to point to the passed player.- Parameters:
player
- the player
-
setHintArrow
void setHintArrow(NPC npc)
Sets a hint arrow to point to the passed NPC.- Parameters:
npc
- the NPC
-
getHintArrowPoint
WorldPoint getHintArrowPoint()
Gets the world point that the hint arrow is directed at.- Returns:
- hint arrow target
-
getHintArrowPlayer
Player getHintArrowPlayer()
Gets the player that the hint arrow is directed at.- Returns:
- hint arrow target
-
getHintArrowNpc
NPC getHintArrowNpc()
Gets the NPC that the hint arrow is directed at.- Returns:
- hint arrow target
-
getAnimationInterpolationFilter
IntPredicate getAnimationInterpolationFilter()
-
setAnimationInterpolationFilter
void setAnimationInterpolationFilter(IntPredicate filter)
-
getBoostedSkillLevels
@VisibleForDevtools int[] getBoostedSkillLevels()
-
getRealSkillLevels
@VisibleForDevtools int[] getRealSkillLevels()
-
getSkillExperiences
@VisibleForDevtools int[] getSkillExperiences()
-
queueChangedSkill
void queueChangedSkill(Skill skill)
-
getSpriteOverrides
Map<Integer,SpritePixels> getSpriteOverrides()
Gets a mapping of sprites to override.The key value in the map corresponds to the ID of the sprite, and the value the sprite to replace it with.
-
getWidgetSpriteOverrides
Map<Integer,SpritePixels> getWidgetSpriteOverrides()
Gets a mapping of widget sprites to override.The key value in the map corresponds to the packed widget ID, and the value the sprite to replace the widgets sprite with.
-
setCompass
void setCompass(SpritePixels spritePixels)
Sets the compass sprite.- Parameters:
spritePixels
- the new sprite
-
getWidgetSpriteCache
NodeCache getWidgetSpriteCache()
Returns widget sprite cache, to be used withgetSpriteOverrides()
- Returns:
- the cache
-
getTickCount
int getTickCount()
Gets the current server tick count.- Returns:
- the tick count
-
setTickCount
void setTickCount(int tickCount)
Sets the current server tick count.- Parameters:
tickCount
- the new tick count
-
setInventoryDragDelay
@Deprecated void setInventoryDragDelay(int delay)
Deprecated.Sets the inventory drag delay in client game cycles (20ms).- Parameters:
delay
- the number of game cycles to delay dragging
-
getWorldType
EnumSet<WorldType> getWorldType()
Gets a set of current world types that apply to the logged in world.- Returns:
- the types for current world
-
getCameraMode
int getCameraMode()
Get the camera mode- Returns:
- 0 for normal, 1 for free camera
-
setCameraMode
void setCameraMode(int mode)
Set the camera mode- Parameters:
mode
- 0 for normal, 1 for free camera
-
getCameraFocalPointX
double getCameraFocalPointX()
Get the camera focus point x Typically this is the player position, but can be other points in cutscenes or in free camera mode.- Returns:
-
setCameraFocalPointX
void setCameraFocalPointX(double x)
Sets the camera focus point x. Requires thegetCameraMode()
to be free camera.- Parameters:
x
-
-
getCameraFocalPointY
double getCameraFocalPointY()
Get the camera focus point y Typically this is the player position, but can be other points in cutscenes or in free camera mode.- Returns:
-
setCameraFocalPointY
void setCameraFocalPointY(double y)
Sets the camera focus point y. Requires thegetCameraMode()
to be free camera.- Parameters:
y
-
-
getCameraFocalPointZ
double getCameraFocalPointZ()
Get the camera focus point z Typically this is the player position, but can be other points in cutscenes or in free camera mode.- Returns:
-
setCameraFocalPointZ
void setCameraFocalPointZ(double z)
Sets the camera focus point z. Requires thegetCameraMode()
to be free camera.- Parameters:
z
-
-
setFreeCameraSpeed
void setFreeCameraSpeed(int speed)
Sets the normal moving speed when using oculus orb (default value is 12)
-
getOculusOrbState
@Deprecated int getOculusOrbState()
Deprecated.Gets the enabled state for the Oculus orb mode
-
setOculusOrbState
@Deprecated void setOculusOrbState(int state)
Deprecated.Sets the enabled state for the Oculus orb state- Parameters:
state
- boolean enabled value
-
setOculusOrbNormalSpeed
@Deprecated void setOculusOrbNormalSpeed(int speed)
Deprecated.Sets the normal moving speed when using oculus orb (default value is 12)
-
getOculusOrbFocalPointX
@Deprecated int getOculusOrbFocalPointX()
Deprecated.Gets local X coord where the camera is pointing when the Oculus orb is active
-
getOculusOrbFocalPointY
@Deprecated int getOculusOrbFocalPointY()
Deprecated.Gets local Y coord where the camera is pointing when the Oculus orb is active
-
openWorldHopper
void openWorldHopper()
Opens in-game world hopper interface
-
hopToWorld
void hopToWorld(World world)
Hops using in-game world hopper widget to another world- Parameters:
world
- target world to hop to
-
setSkyboxColor
void setSkyboxColor(int skyboxColor)
Sets the RGB color of the skybox
-
getSkyboxColor
int getSkyboxColor()
Gets the RGB color of the skybox
-
isGpu
boolean isGpu()
-
setGpuFlags
void setGpuFlags(int gpuflags)
-
setExpandedMapLoading
void setExpandedMapLoading(int chunks)
-
getExpandedMapLoading
int getExpandedMapLoading()
-
get3dZoom
int get3dZoom()
-
getCenterX
int getCenterX()
-
getCenterY
int getCenterY()
-
getTextureProvider
TextureProvider getTextureProvider()
-
getRasterizer3D_clipMidX2
int getRasterizer3D_clipMidX2()
-
getRasterizer3D_clipNegativeMidX
int getRasterizer3D_clipNegativeMidX()
-
getRasterizer3D_clipNegativeMidY
int getRasterizer3D_clipNegativeMidY()
-
getRasterizer3D_clipMidY2
int getRasterizer3D_clipMidY2()
-
checkClickbox
void checkClickbox(Projection projection, Model model, int orientation, int x, int y, int z, long hash)
-
isWidgetSelected
boolean isWidgetSelected()
Is a widget is in target mode?
-
setWidgetSelected
void setWidgetSelected(boolean selected)
Sets if a widget is in target mode
-
getSelectedWidget
@Nullable Widget getSelectedWidget()
Get the selected widget, such as a selected spell or selected item (eg. "Use")- Returns:
- the selected widget
-
getItemCompositionCache
NodeCache getItemCompositionCache()
Returns client item composition cache
-
getObjectCompositionCache
NodeCache getObjectCompositionCache()
Returns client object composition cache- Returns:
-
getCrossSprites
SpritePixels[] getCrossSprites()
Returns the array of cross sprites that appear and animate when left-clicking
-
getEnum
EnumComposition getEnum(int id)
-
draw2010Menu
void draw2010Menu(int alpha)
Draws a menu in the 2010 interface style.- Parameters:
alpha
- background transparency of the menu
-
drawOriginalMenu
void drawOriginalMenu(int alpha)
Draws a menu in the OSRS interface style.- Parameters:
alpha
- background transparency of the menu
-
resetHealthBarCaches
void resetHealthBarCaches()
-
getItemCount
int getItemCount()
Returns the max item index + 1 from cache
-
setAllWidgetsAreOpTargetable
void setAllWidgetsAreOpTargetable(boolean value)
Makes all widgets behave as if they areWidgetConfig.WIDGET_USE_TARGET
-
setGeSearchResultCount
void setGeSearchResultCount(int count)
Sets the result count for GE search
-
setGeSearchResultIds
void setGeSearchResultIds(short[] ids)
Sets the array of item ids for GE search
-
setGeSearchResultIndex
void setGeSearchResultIndex(int index)
Sets the starting index in the item id array for GE search
-
setLoginScreen
void setLoginScreen(SpritePixels pixels)
Sets the image to be used for the login screen, provided as SpritePixels If the image is larger than half the width of fixed mode, it won't get mirrored to the other side of the screen
-
setShouldRenderLoginScreenFire
void setShouldRenderLoginScreenFire(boolean val)
Sets whether the flames on the login screen should be rendered
-
isKeyPressed
boolean isKeyPressed(int keycode)
Test if a key is pressed- Parameters:
keycode
- the keycode- Returns:
- See Also:
KeyCode
-
getCrossWorldMessageIds
long[] getCrossWorldMessageIds()
Get the list of message ids for the recently received cross-world messages. The upper 32 bits of the id is the world id, the lower is a sequence number per-world.- Returns:
-
getCrossWorldMessageIdsIndex
int getCrossWorldMessageIdsIndex()
Get the index of the next message to be inserted in the cross world message id list- Returns:
-
getClanChannel
@Nullable ClanChannel getClanChannel()
Get the primary clan channel the player is in.- Returns:
-
getGuestClanChannel
@Nullable ClanChannel getGuestClanChannel()
Get the guest clan channel the player is in.- Returns:
-
getClanSettings
@Nullable ClanSettings getClanSettings()
Get clan settings for the clan the user is in.- Returns:
-
getGuestClanSettings
@Nullable ClanSettings getGuestClanSettings()
Get the guest clan's settings.- Returns:
-
getClanChannel
@Nullable ClanChannel getClanChannel(int clanId)
Get clan channel by id.- Parameters:
clanId
- the clan id- Returns:
- See Also:
ClanID
-
getClanSettings
@Nullable ClanSettings getClanSettings(int clanId)
Get clan settings by id- Parameters:
clanId
- the clan id- Returns:
- See Also:
ClanID
-
setUnlockedFps
void setUnlockedFps(boolean unlock)
-
setUnlockedFpsTarget
void setUnlockedFpsTarget(int fps)
-
getAmbientSoundEffects
Deque<AmbientSoundEffect> getAmbientSoundEffects()
Gets the ambient sound effects- Returns:
-
setIdleTimeout
void setIdleTimeout(int ticks)
Set the amount of time until the client automatically logs out due to idle input.- Parameters:
ticks
- client ticks
-
getIdleTimeout
int getIdleTimeout()
Get the amount of time until the client automatically logs out due to idle input.- Returns:
- client ticks
-
isMinimapZoom
boolean isMinimapZoom()
Get whether minimap zoom is enabled- Returns:
-
setMinimapZoom
void setMinimapZoom(boolean minimapZoom)
Set whether minimap zoom is enabled- Parameters:
minimapZoom
-
-
getMinimapZoom
double getMinimapZoom()
Gets the number of pixels per tile on the minimap. The default is 4.- Returns:
-
setMinimapZoom
void setMinimapZoom(double zoom)
Set the number of pixels per tile on the minimap. The default is 4.- Parameters:
zoom
-
-
setMinimapTileDrawer
void setMinimapTileDrawer(TileFunction drawTile)
Sets a callback to override the drawing of tiles on the minimap. Will be called per tile per frame.
-
getRasterizer
Rasterizer getRasterizer()
-
menuAction
void menuAction(int p0, int p1, MenuAction action, int id, int itemId, String option, String target)
-
getWorldView
WorldView getWorldView(int id)
Get worldview by id- Parameters:
id
- id, or -1 for top level worldview- Returns:
-
getTopLevelWorldView
WorldView getTopLevelWorldView()
Get the top level world view- Returns:
-
isCameraShakeDisabled
boolean isCameraShakeDisabled()
Whether camera shaking effects are disabled at e.g. Barrows, ToA- Returns:
-
setCameraShakeDisabled
void setCameraShakeDisabled(boolean disabled)
Set whether to disable camera shaking effects at e.g. Barrows, ToA- Parameters:
disabled
-
-
getDraw2DMask
int getDraw2DMask()
Gets the current draw2D mask.- Returns:
- the current mask
- See Also:
setDraw2DMask(int)
-
setDraw2DMask
void setDraw2DMask(int mask)
Sets the current draw2D mask. Use bit operations on the value returned bygetDraw2DMask()
to modify specific features.- Parameters:
mask
- The new mask.
-
getInstanceTemplateChunks
@Deprecated int[][][] getInstanceTemplateChunks()
Deprecated.Contains a 3D array of template chunks for instanced areas.The array returned is of format [z][x][y], where z is the plane, x and y the x-axis and y-axis coordinates of a tile divided by the size of a chunk.
The bits of the int value held by the coordinates are -1 if there is no data, structured in the following format:
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |rot| y chunk coord | x chunk coord |pln| | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Returns:
- the array of instance template chunks
- See Also:
Constants.CHUNK_SIZE
,InstanceTemplates
,WorldView.getInstanceTemplateChunks()
-
getXteaKeys
@Deprecated int[][] getXteaKeys()
Deprecated.Returns a 2D array containing XTEA encryption keys used to decrypt map region files.The array maps the region keys at index
n
to the region ID held ingetMapRegions()
atn
.The array of keys for the region make up a 128-bit encryption key spread across 4 integers.
- Returns:
- the XTEA encryption keys
-
isInInstancedRegion
@Deprecated boolean isInInstancedRegion()
Deprecated.Checks whether the scene is in an instanced region.- See Also:
WorldView.isInstance()
-
getMapRegions
@Deprecated int[] getMapRegions()
Deprecated.Gets an array of map region IDs that are currently loaded.- Returns:
- the map regions
-
getScene
@Deprecated default Scene getScene()
Deprecated.Gets the current scene- See Also:
WorldView.getScene()
-
getPlayers
@Deprecated default List<Player> getPlayers()
Deprecated.Gets a list of all valid players from the player cache.- Returns:
- a list of all players
- See Also:
WorldView.players()
-
getNpcs
@Deprecated default List<NPC> getNpcs()
Deprecated.Gets a list of all valid NPCs from the NPC cache.- Returns:
- a list of all NPCs
- See Also:
WorldView.npcs()
-
getCachedNPCs
@Deprecated default NPC[] getCachedNPCs()
Deprecated.Gets an array of all cached NPCs.- Returns:
- cached NPCs
- See Also:
WorldView.npcs()
-
getCachedPlayers
@Deprecated default Player[] getCachedPlayers()
Deprecated.Gets an array of all cached players.- Returns:
- cached players
- See Also:
WorldView.players()
-
getCollisionMaps
@Nullable @Deprecated default CollisionData[] getCollisionMaps()
Deprecated.Gets an array of tile collision data.The index into the array is the plane/z-axis coordinate.
- Returns:
- the collision data
- See Also:
WorldView.getCollisionMaps()
-
getPlane
@Deprecated default int getPlane()
Deprecated.Gets the current plane the player is on.This value indicates the current map level above ground level, where ground level is 0. For example, going up a ladder in Lumbridge castle will put the player on plane 1.
Note: This value will never be below 0. Basements and caves below ground level use a tile offset and are still considered plane 0 by the game.
- Returns:
- the plane
- See Also:
WorldView.getPlane()
-
getTileHeights
@Deprecated default int[][][] getTileHeights()
Deprecated.Gets a 3D array containing the heights of tiles in the current scene.- Returns:
- the tile heights
- See Also:
WorldView.getTileHeights()
-
getTileSettings
@Deprecated default byte[][][] getTileSettings()
Deprecated.Gets a 3D array containing the settings of tiles in the current scene.- Returns:
- the tile settings
- See Also:
WorldView.getTileSettings()
-
getBaseX
@Deprecated default int getBaseX()
Deprecated.Returns the x-axis base coordinate.This value is the x-axis world coordinate of tile (0, 0) in the current scene (ie. the bottom-left most coordinates in the scene).
- Returns:
- the base x-axis coordinate
- See Also:
WorldView.getBaseX()
-
getBaseY
@Deprecated default int getBaseY()
Deprecated.Returns the y-axis base coordinate.This value is the y-axis world coordinate of tile (0, 0) in the current scene (ie. the bottom-left most coordinates in the scene).
- Returns:
- the base y-axis coordinate
- See Also:
WorldView.getBaseY()
-
createProjectile
@Deprecated default Projectile createProjectile(int id, int plane, int startX, int startY, int startZ, int startCycle, int endCycle, int slope, int startHeight, int endHeight, @Nullable Actor target, int targetX, int targetY)
Deprecated.Create a projectile.- Parameters:
id
- projectile/spotanim idplane
- plane the projectile is onstartX
- local x coordinate the projectile starts atstartY
- local y coordinate the projectile starts atstartZ
- local z coordinate the projectile starts at - includes tile heightstartCycle
- cycle the project startsendCycle
- cycle the projectile endsslope
-startHeight
- start height of projectile - excludes tile heightendHeight
- end height of projectile - excludes tile heighttarget
- optional actor targettargetX
- target x - if an actor target is supplied should be the target xtargetY
- target y - if an actor target is supplied should be the target y- Returns:
- the new projectile
- See Also:
WorldView.createProjectile(int, int, int, int, int, int, int, int, int, int, Actor, int, int)
-
getProjectiles
@Deprecated default Deque<Projectile> getProjectiles()
Deprecated.Gets a list of all projectiles currently spawned.- Returns:
- all projectiles
- See Also:
WorldView.getProjectiles()
-
getGraphicsObjects
@Deprecated default Deque<GraphicsObject> getGraphicsObjects()
Deprecated.Gets a list of all graphics objects currently drawn.- Returns:
- all graphics objects
- See Also:
WorldView.getGraphicsObjects()
-
getSelectedSceneTile
@Deprecated @Nullable default Tile getSelectedSceneTile()
Deprecated.Gets the currently selected tile. (ie. last right clicked tile)- Returns:
- the selected tile
- See Also:
WorldView.getSelectedSceneTile()
-
-