Package baritone.api.event.listener
Interface IGameEventListener
- All Known Subinterfaces:
AbstractGameEventListener,IBehavior,IEventBus,IInputOverrideHandler,ILookBehavior,IPathingBehavior
public interface IGameEventListener
- Since:
- 7/31/2018
- Author:
- Brady
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBlockChange(BlockChangeEvent event) Runs after a single or multi block change packet is received and processed.voidCalled when the local player interacts with a block, whether it is breaking or opening/placing.voidonChunkEvent(ChunkEvent event) Runs before and after whenever a chunk is either loaded, unloaded, or populated.voidonPathEvent(PathEvent event) When the pathfinder's state changesvoidCalled when the local player dies, as indicated by the creation of theDeathScreenscreen.voidRun once per game tick from before and after the player's moveRelative method is called and before and after the player jumps.voidCalled whenever the sprint keybind state is checked inLocalPlayer.aiStep()voidonPlayerUpdate(PlayerUpdateEvent event) Run once per game tick from before and after the player rotation is sent to the server.voidonPostTick(TickEvent event) Run once per game tick after the tick is completedvoidonPreTabComplete(TabCompleteEvent event) Runs whenever the client player tries to tab complete in chat.voidonReceivePacket(PacketEvent event) Runs before an inbound packet is processedvoidonRenderPass(RenderEvent event) Runs once per world render pass.voidonSendChatMessage(ChatEvent event) Runs whenever the client player sends a message to the server.voidonSendPacket(PacketEvent event) Runs before a outbound packet is sentvoidRun once per game tick before screen input is handled.voidonWorldEvent(WorldEvent event) Runs before and after whenever a new world is loaded
-
Method Details
-
onTick
Run once per game tick before screen input is handled.- Parameters:
event- The event- See Also:
-
onPostTick
Run once per game tick after the tick is completed- Parameters:
event- The event- See Also:
-
onPlayerUpdate
Run once per game tick from before and after the player rotation is sent to the server.- Parameters:
event- The event- See Also:
-
onSendChatMessage
Runs whenever the client player sends a message to the server.- Parameters:
event- The event- See Also:
-
onPreTabComplete
Runs whenever the client player tries to tab complete in chat.- Parameters:
event- The event
-
onChunkEvent
Runs before and after whenever a chunk is either loaded, unloaded, or populated.- Parameters:
event- The event
-
onBlockChange
Runs after a single or multi block change packet is received and processed.- Parameters:
event- The event
-
onRenderPass
Runs once per world render pass.- Parameters:
event- The event
-
onWorldEvent
Runs before and after whenever a new world is loaded- Parameters:
event- The event- See Also:
-
onSendPacket
Runs before a outbound packet is sent- Parameters:
event- The event- See Also:
-
onReceivePacket
Runs before an inbound packet is processed- Parameters:
event- The event- See Also:
-
onPlayerRotationMove
Run once per game tick from before and after the player's moveRelative method is called and before and after the player jumps.- Parameters:
event- The event- See Also:
-
onPlayerSprintState
Called whenever the sprint keybind state is checked inLocalPlayer.aiStep()- Parameters:
event- The event- See Also:
-
onBlockInteract
Called when the local player interacts with a block, whether it is breaking or opening/placing.- Parameters:
event- The event
-
onPlayerDeath
void onPlayerDeath()Called when the local player dies, as indicated by the creation of theDeathScreenscreen.- See Also:
-
onPathEvent
When the pathfinder's state changes- Parameters:
event- The event
-