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 EngineTasks
getEngineTasks()
String
getenv(String key)
FpsManager
getFpsManager()
Socket
getSocket(Socket base)
boolean
isInterfaceEnabled(int group)
void
notifyAddHitSplat(RSPathingEntity entity, int type, int damage, int specialType, int specialDamage, int currentCycle, int delay)
void
notifyAddHitUpdate(RSPathingEntity entity, int id, int startCycle, int currentCycle, int duration, int startWidth, int currentWidth)
void
notifyAnimation(Object object, int prev, int curr)
int
notifyAsyncInputStreamAvailable()
int
notifyAsyncInputStreamIsAvailable(int amount)
int
notifyAsyncInputStreamRead(byte[] buffer, int offset, int length)
int
notifyAsyncInputStreamReadUnsignedByte()
void
notifyBuildMenu()
void
notifyChunkUpdate(int newChunk, int x, int y, int z)
void
notifyDraw(RSClient ctx, boolean idk)
void
notifyDraw(RSModel model, boolean p1, boolean p2, boolean p3, long uid)
void
notifyDrawGame(RSGraphicsProvider ctx, Graphics graphics, int width, int height)
void
notifyDrawTileOverlay(RSTileModel model, int x, int y)
void
notifyDrawTileUnderlay(int x, int y, int y0, int x0, int y1, int x1, int y2, int x2, int y3, int x3)
void
notifyDynamicObjectSpawn(RSDynamicObject object)
void
notifyEffectObjectsDeque(RSEffectObject effect)
void
notifyEntitiesRendered()
void
notifyFireScriptEvent(RSScriptEvent event)
boolean
notifyFlush(RSConnectionContext ctx)
void
notifyInventoryUpdate(int key, int index, int id, int stack)
void
notifyItemIds(int index, int[] array)
boolean
notifyKeyPressed(RSCanvasKeyListener l, KeyEvent e)
boolean
notifyKeyReleased(RSCanvasKeyListener l, KeyEvent e)
boolean
notifyKeyTyped(RSCanvasKeyListener l, KeyEvent e)
void
notifyMessageReceived(int type, String source, String contents, String channel)
void
notifyModelUpdate(RSEntity entity, RSModel model)
boolean
notifyMouseClicked(RSCanvasMouseListener l, MouseEvent e)
boolean
notifyMouseDragged(RSCanvasMouseListener l, MouseEvent e)
boolean
notifyMouseEntered(RSCanvasMouseListener l, MouseEvent e)
boolean
notifyMouseExited(RSCanvasMouseListener l, MouseEvent e)
boolean
notifyMouseMoved(RSCanvasMouseListener l, MouseEvent e)
boolean
notifyMousePressed(RSCanvasMouseListener l, MouseEvent e)
void
notifyMouseRecord(int x, int y, int xd, int yd, int td)
boolean
notifyMouseReleased(RSCanvasMouseListener l, MouseEvent e)
void
notifyNpcCreated(RSNpc npc)
void
notifyNpcUnloading(RSNpc npc, int index)
void
notifyNpcUpdate()
void
notifyNpcUpdateDone()
boolean
notifyOpenURL(String url, boolean smtn1, String smtn2, boolean smtn3)
void
notifyOverheadText(Object object, String prev, String curr)
void
notifyPathingEntityEffect(RSPathingEntity entity, int effectId)
void
notifyPathingEntityMoved(RSPathingEntity entity, int newX, int newY, boolean tileMovement)
void
notifyPdata(RSBuffer ctx, byte[] buffer, int offset, int length)
void
notifyPickablesDeque(int floor, int sceneX, int sceneY, RSPickable pickable)
void
notifyPleaseWaitUpdated()
void
notifyPostDrawTileOverlay()
void
notifyPreEntitiesRendered()
boolean
notifyProcessAction(int sec, int ter, int op, int pri, int quat, int matrixId, String action, String target, int crosshairX, int crosshairY)
void
notifyProcessAudioEffect(int id, int loops, int delay)
void
notifyProcessDialogActionPacket(int uid, int subcomponent)
boolean
notifyProcessDisconnect()
void
notifyProcessLoginResponse(int code)
void
notifyProcessPlacedAudioEffect(int absX, int absY, boolean local)
void
notifyProjectilesDeque(RSProjectile projectile)
void
notifyRandomInitialization()
void
notifyRawServerRead(RSAsyncInputStream inputStream, int len, int result)
void
notifyRegionUpdate()
int
notifyScriptOpcodeProcessed(RSScriptEvent context, RSRuneScript script, int opcode, int result, boolean dot)
void
notifyServerRead(RSConnectionContext ctx, RSPacketBuffer buf)
void
notifyServerTick()
void
notifySetGameState(int newState)
boolean
notifySetLoginStateRaw(int newState)
void
notifySkillUpdate(int index, int experience)
void
notifySpawnObjectLater(RSWorldMatrix worldMatrix, int plane, int x, int y, int tag, int id, int transform, int orientation, int hidden, int startCycle, int endCycle)
void
notifySpawnPickable(int floor, int sceneX, int sceneY, int id, int quantity, int opFlag, int ticksUntilReveal, int ticksUntilDespawn, int ownerType, boolean unk)
void
notifyStance(Object object, int prev, int curr)
void
notifyStockMarketListing(RSStockMarketTransaction transaction)
void
notifyStockMarketUpdate(int index, RSStockMarketTransaction transaction)
void
notifySystemInformationInitialization()
void
notifyTableInsertion(RSNode node)
void
notifyTarget(RSProjectile projectile, int x, int y, int height, int cycle)
void
notifyTargetIndex(Object object, int prev, int curr)
void
notifyTinyenc(RSBuffer ctx, int[] key, int start, int end)
void
notifyVarcInt(int index, int newValue)
void
notifyVarcString(int index, String newValue)
void
notifyWorldMapTick()
void
notifyWriteLater(RSConnectionContext ctx, RSOutgoingPacket packet)
void
notifyXteaKeys(int i, int[] is)
static URLConnection
openConnection(URL url)
void
preNotifyItemIds(int index, int[] array)
void
preNotifyXteaKeys(int i, int[] is)
int
preprocessOpcode(int opcode, RSRuneScript script, boolean bool)
String
spoofDeviceId()
void
visitScriptInstruction(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)
-
notifyProcessAudioEffect
public void notifyProcessAudioEffect(int id, int loops, int delay)
-
notifyProcessPlacedAudioEffect
public void notifyProcessPlacedAudioEffect(int absX, int absY, boolean local)
-
notifyTarget
public void notifyTarget(RSProjectile projectile, int x, int y, int height, int cycle)
-
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)
-
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(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, 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()
-
notifyStance
public void notifyStance(Object object, int prev, int curr)
-
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()
-
notifyAnimation
public void notifyAnimation(Object object, int prev, int curr)
-
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)
-
-