Class EventMediator
- java.lang.Object
-
- org.rspeer.game.provider.callback.EventMediator
-
public class EventMediator extends Object
-
-
Constructor Summary
Constructors Constructor Description EventMediator(org.rspeer.environment.uid.hwid.HWIDService hwidService, EngineTasks engineTasks, SocketProvider socketProvider, FpsManager fpsManager, OverlayManager overlayManager, PacketManager packetManager, PacketReplay packetReplay, MenuOpcodeManager menuOpcodeManager, ScriptOpcodeManager scriptOpcodeManager, PingService pingService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EngineTasksgetEngineTasks()Stringgetenv(String key)FpsManagergetFpsManager()SocketgetSocket(Socket base)booleanisInterfaceEnabled(int group)voidnotifyAddHitSplat(RSPathingEntity entity, int type, int damage, int specialType, int specialDamage, int currentCycle, int delay)voidnotifyAddHitUpdate(RSPathingEntity entity, int id, int startCycle, int currentCycle, int duration, int startWidth, int currentWidth)intnotifyAsyncInputStreamAvailable()intnotifyAsyncInputStreamIsAvailable(int amount)intnotifyAsyncInputStreamRead(byte[] buffer, int offset, int length)intnotifyAsyncInputStreamReadUnsignedByte()voidnotifyBuildMenu()voidnotifyChunkUpdate(int newChunk, int x, int y, int z)voidnotifyDraw(RSClient ctx, boolean idk)voidnotifyDraw(RSModel model, boolean p1, boolean p2, boolean p3, long uid)voidnotifyDrawGame(RSGraphicsProvider ctx, Graphics graphics, int width, int height)voidnotifyDrawTileOverlay(RSTileModel model, int x, int y)voidnotifyDrawTileUnderlay(int x, int y, int y0, int x0, int y1, int x1, int y2, int x2, int y3, int x3)voidnotifyDynamicObjectSpawn(RSDynamicObject object)voidnotifyEffectObjectsDeque(RSEffectObject effect)voidnotifyEntitiesRendered()voidnotifyFireScriptEvent(RSScriptEvent event)booleannotifyFlush(RSConnectionContext ctx)voidnotifyInventoryUpdate(int key, int index, int id, int stack)voidnotifyItemIds(int index, int[] array)booleannotifyKeyPressed(RSCanvasKeyListener l, KeyEvent e)booleannotifyKeyReleased(RSCanvasKeyListener l, KeyEvent e)booleannotifyKeyTyped(RSCanvasKeyListener l, KeyEvent e)voidnotifyMessageReceived(int type, String source, String contents, String channel)voidnotifyModelUpdate(RSEntity entity, RSModel model)booleannotifyMouseClicked(RSCanvasMouseListener l, MouseEvent e)booleannotifyMouseDragged(RSCanvasMouseListener l, MouseEvent e)booleannotifyMouseEntered(RSCanvasMouseListener l, MouseEvent e)booleannotifyMouseExited(RSCanvasMouseListener l, MouseEvent e)booleannotifyMouseMoved(RSCanvasMouseListener l, MouseEvent e)booleannotifyMousePressed(RSCanvasMouseListener l, MouseEvent e)voidnotifyMouseRecord(int x, int y, int xd, int yd, int td)booleannotifyMouseReleased(RSCanvasMouseListener l, MouseEvent e)voidnotifyNpcCreated(RSNpc npc)voidnotifyNpcUnloading(RSNpc npc, int index)voidnotifyNpcUpdate()voidnotifyNpcUpdateDone()booleannotifyOpenURL(String url, boolean smtn1, String smtn2, boolean smtn3)voidnotifyOverheadText(Object object, String prev, String curr)voidnotifyPathingEntityEffect(RSPathingEntity entity, int effectId)voidnotifyPathingEntityMoved(RSPathingEntity entity, int newX, int newY, boolean tileMovement)voidnotifyPdata(RSBuffer ctx, byte[] buffer, int offset, int length)voidnotifyPickablesDeque(int floor, int sceneX, int sceneY, RSPickable pickable)voidnotifyPleaseWaitUpdated()voidnotifyPostDrawTileOverlay()voidnotifyPreEntitiesRendered()booleannotifyProcessAction(int sec, int ter, int op, int pri, int quat, int matrixId, String action, String target, int crosshairX, int crosshairY)voidnotifyProcessDialogActionPacket(int uid, int subcomponent)booleannotifyProcessDisconnect()voidnotifyProcessLoginResponse(int code)voidnotifyProcessPlacedAudioEffect(int var0, int var1, int var2, int var3, int var4, int var5, int var6, int var7, boolean var8)voidnotifyProjectileMovement(RSProjectile proj)voidnotifyProjectilesDeque(RSProjectile projectile)voidnotifyRandomInitialization()voidnotifyRawServerRead(RSAsyncInputStream inputStream, int len, int result)voidnotifyRegionUpdate()intnotifyScriptOpcodeProcessed(RSScriptEvent context, RSRuneScript script, int opcode, int result, boolean dot)voidnotifyServerRead(RSConnectionContext ctx, RSPacketBuffer buf)voidnotifyServerTick()voidnotifySetAnimationId(RSPathingEntity object, int next)voidnotifySetGameState(int newState)booleannotifySetLoginStateRaw(int newState)voidnotifySkillUpdate(int index, int experience)voidnotifySpawnObjectLater(RSWorldMatrix worldMatrix, int plane, int x, int y, int tag, int id, int transform, int orientation, int hidden, String[] idk, int startCycle, int endCycle)voidnotifySpawnPickable(RSWorldMatrix world, int floor, int sceneX, int sceneY, int id, int quantity, int opFlag, int ticksUntilReveal, int ticksUntilDespawn, int ownerType, boolean unk)voidnotifyStockMarketListing(RSStockMarketTransaction transaction)voidnotifyStockMarketUpdate(int index, RSStockMarketTransaction transaction)voidnotifySystemInformationInitialization()voidnotifyTableInsertion(RSNode node)voidnotifyTargetIndex(Object object, int prev, int curr)voidnotifyTinyenc(RSBuffer ctx, int[] key, int start, int end)voidnotifyVarcInt(int index, int newValue)voidnotifyVarcString(int index, String newValue)voidnotifyWorldMapTick()voidnotifyWriteLater(RSConnectionContext ctx, RSOutgoingPacket packet)voidnotifyXteaKeys(int i, int[] is)static URLConnectionopenConnection(URL url)voidpreNotifyItemIds(int index, int[] array)voidpreNotifyXteaKeys(int i, int[] is)intpreprocessOpcode(int opcode, RSRuneScript script, boolean bool)StringspoofDeviceId()voidvisitScriptInstruction(RSScriptEvent context, RSRuneScript script, int opcode, int pcIndex)
-
-
-
Constructor Detail
-
EventMediator
@Inject public EventMediator(org.rspeer.environment.uid.hwid.HWIDService hwidService, EngineTasks engineTasks, SocketProvider socketProvider, FpsManager fpsManager, OverlayManager overlayManager, PacketManager packetManager, PacketReplay packetReplay, MenuOpcodeManager menuOpcodeManager, ScriptOpcodeManager scriptOpcodeManager, PingService pingService)
-
-
Method Detail
-
openConnection
public static URLConnection openConnection(URL url) throws IOException
- Throws:
IOException
-
isInterfaceEnabled
public boolean isInterfaceEnabled(int group)
-
getFpsManager
public FpsManager getFpsManager()
-
getEngineTasks
public EngineTasks getEngineTasks()
-
notifyWriteLater
public void notifyWriteLater(RSConnectionContext ctx, RSOutgoingPacket packet)
-
notifyServerRead
public void notifyServerRead(RSConnectionContext ctx, RSPacketBuffer buf)
-
notifyRawServerRead
public void notifyRawServerRead(RSAsyncInputStream inputStream, int len, int result)
-
notifyAsyncInputStreamAvailable
public int notifyAsyncInputStreamAvailable()
-
notifyAsyncInputStreamIsAvailable
public int notifyAsyncInputStreamIsAvailable(int amount)
-
notifyAsyncInputStreamRead
public int notifyAsyncInputStreamRead(byte[] buffer, int offset, int length)
-
notifyAsyncInputStreamReadUnsignedByte
public int notifyAsyncInputStreamReadUnsignedByte()
-
notifyProcessDisconnect
public boolean notifyProcessDisconnect()
-
notifySetLoginStateRaw
public boolean notifySetLoginStateRaw(int newState)
-
notifyFlush
public boolean notifyFlush(RSConnectionContext ctx)
-
notifySkillUpdate
public void notifySkillUpdate(int index, int experience)
-
notifyRandomInitialization
public void notifyRandomInitialization()
-
notifyTinyenc
public void notifyTinyenc(RSBuffer ctx, int[] key, int start, int end)
-
notifyPdata
public void notifyPdata(RSBuffer ctx, byte[] buffer, int offset, int length)
-
notifyDrawTileOverlay
public void notifyDrawTileOverlay(RSTileModel model, int x, int y)
-
notifyPostDrawTileOverlay
public void notifyPostDrawTileOverlay()
-
notifyDrawTileUnderlay
public void notifyDrawTileUnderlay(int x, int y, int y0, int x0, int y1, int x1, int y2, int x2, int y3, int x3)
-
notifyDraw
public void notifyDraw(RSModel model, boolean p1, boolean p2, boolean p3, long uid)
-
notifyProjectileMovement
public void notifyProjectileMovement(RSProjectile proj)
-
notifyAddHitSplat
public void notifyAddHitSplat(RSPathingEntity entity, int type, int damage, int specialType, int specialDamage, int currentCycle, int delay)
-
notifyPathingEntityMoved
public void notifyPathingEntityMoved(RSPathingEntity entity, int newX, int newY, boolean tileMovement)
-
notifyAddHitUpdate
public void notifyAddHitUpdate(RSPathingEntity entity, int id, int startCycle, int currentCycle, int duration, int startWidth, int currentWidth)
-
notifyProcessPlacedAudioEffect
public void notifyProcessPlacedAudioEffect(int var0, int var1, int var2, int var3, int var4, int var5, int var6, int var7, boolean var8)
-
notifySystemInformationInitialization
public void notifySystemInformationInitialization()
-
spoofDeviceId
public String spoofDeviceId()
-
notifyInventoryUpdate
public void notifyInventoryUpdate(int key, int index, int id, int stack)
-
notifyTableInsertion
public void notifyTableInsertion(RSNode node)
-
notifyXteaKeys
public void notifyXteaKeys(int i, int[] is)
-
preNotifyXteaKeys
public void preNotifyXteaKeys(int i, int[] is)
-
notifyRegionUpdate
public void notifyRegionUpdate()
-
notifyDynamicObjectSpawn
public void notifyDynamicObjectSpawn(RSDynamicObject object)
-
notifySpawnPickable
public void notifySpawnPickable(RSWorldMatrix world, int floor, int sceneX, int sceneY, int id, int quantity, int opFlag, int ticksUntilReveal, int ticksUntilDespawn, int ownerType, boolean unk)
-
notifySpawnObjectLater
public void notifySpawnObjectLater(RSWorldMatrix worldMatrix, int plane, int x, int y, int tag, int id, int transform, int orientation, int hidden, String[] idk, int startCycle, int endCycle)
-
notifyMouseRecord
public void notifyMouseRecord(int x, int y, int xd, int yd, int td)
-
notifyPickablesDeque
public void notifyPickablesDeque(int floor, int sceneX, int sceneY, RSPickable pickable)
-
notifyProjectilesDeque
public void notifyProjectilesDeque(RSProjectile projectile)
-
notifyEffectObjectsDeque
public void notifyEffectObjectsDeque(RSEffectObject effect)
-
notifyProcessDialogActionPacket
public void notifyProcessDialogActionPacket(int uid, int subcomponent)
-
visitScriptInstruction
public void visitScriptInstruction(RSScriptEvent context, RSRuneScript script, int opcode, int pcIndex)
-
preprocessOpcode
public int preprocessOpcode(int opcode, RSRuneScript script, boolean bool)
-
notifyScriptOpcodeProcessed
public int notifyScriptOpcodeProcessed(RSScriptEvent context, RSRuneScript script, int opcode, int result, boolean dot)
-
notifyFireScriptEvent
public void notifyFireScriptEvent(RSScriptEvent event)
-
notifyStockMarketListing
public void notifyStockMarketListing(RSStockMarketTransaction transaction)
-
notifyStockMarketUpdate
public void notifyStockMarketUpdate(int index, RSStockMarketTransaction transaction)
-
notifyPleaseWaitUpdated
public void notifyPleaseWaitUpdated()
-
notifyTargetIndex
public void notifyTargetIndex(Object object, int prev, int curr)
-
notifyPathingEntityEffect
public void notifyPathingEntityEffect(RSPathingEntity entity, int effectId)
-
notifyVarcInt
public void notifyVarcInt(int index, int newValue)
-
notifyVarcString
public void notifyVarcString(int index, String newValue)
-
notifyServerTick
public void notifyServerTick()
-
notifySetAnimationId
public void notifySetAnimationId(RSPathingEntity object, int next)
-
preNotifyItemIds
public void preNotifyItemIds(int index, int[] array)
-
notifyItemIds
public void notifyItemIds(int index, int[] array)
-
notifyProcessLoginResponse
public void notifyProcessLoginResponse(int code)
-
notifyMessageReceived
public void notifyMessageReceived(int type, String source, String contents, String channel)
-
notifyProcessAction
public boolean notifyProcessAction(int sec, int ter, int op, int pri, int quat, int matrixId, String action, String target, int crosshairX, int crosshairY)
-
notifyBuildMenu
public void notifyBuildMenu()
-
notifyWorldMapTick
public void notifyWorldMapTick()
-
notifyChunkUpdate
public void notifyChunkUpdate(int newChunk, int x, int y, int z)
-
notifySetGameState
public void notifySetGameState(int newState)
-
notifyNpcUpdate
public void notifyNpcUpdate()
-
notifyNpcCreated
public void notifyNpcCreated(RSNpc npc)
-
notifyNpcUnloading
public void notifyNpcUnloading(RSNpc npc, int index)
-
notifyNpcUpdateDone
public void notifyNpcUpdateDone()
-
notifyDraw
public void notifyDraw(RSClient ctx, boolean idk)
-
notifyPreEntitiesRendered
public void notifyPreEntitiesRendered()
-
notifyEntitiesRendered
public void notifyEntitiesRendered()
-
notifyDrawGame
public void notifyDrawGame(RSGraphicsProvider ctx, Graphics graphics, int width, int height)
-
notifyMouseClicked
public boolean notifyMouseClicked(RSCanvasMouseListener l, MouseEvent e)
-
notifyMousePressed
public boolean notifyMousePressed(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseReleased
public boolean notifyMouseReleased(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseEntered
public boolean notifyMouseEntered(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseExited
public boolean notifyMouseExited(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseDragged
public boolean notifyMouseDragged(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseMoved
public boolean notifyMouseMoved(RSCanvasMouseListener l, MouseEvent e)
-
notifyKeyTyped
public boolean notifyKeyTyped(RSCanvasKeyListener l, KeyEvent e)
-
notifyKeyPressed
public boolean notifyKeyPressed(RSCanvasKeyListener l, KeyEvent e)
-
notifyKeyReleased
public boolean notifyKeyReleased(RSCanvasKeyListener l, KeyEvent e)
-
-