Package baritone.api.event.listener
Interface AbstractGameEventListener
- All Superinterfaces:
IGameEventListener
- All Known Subinterfaces:
IBehavior,IInputOverrideHandler,ILookBehavior,IPathingBehavior
An implementation of
IGameEventListener that has all methods
overridden with empty bodies, allowing inheritors of this class to choose
which events they would like to listen in on.- Since:
- 8/1/2018
- Author:
- Brady
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonBlockChange(BlockChangeEvent event) Runs after a single or multi block change packet is received and processed.default voidCalled when the local player interacts with a block, whether it is breaking or opening/placing.default voidonChunkEvent(ChunkEvent event) Runs before and after whenever a chunk is either loaded, unloaded, or populated.default voidonPathEvent(PathEvent event) When the pathfinder's state changesdefault voidCalled when the local player dies, as indicated by the creation of theDeathScreenscreen.default voidRun once per game tick from before and after the player's moveRelative method is called and before and after the player jumps.default voidCalled whenever the sprint keybind state is checked inLocalPlayer.aiStep()default voidonPlayerUpdate(PlayerUpdateEvent event) Run once per game tick from before and after the player rotation is sent to the server.default voidonPostTick(TickEvent event) Run once per game tick after the tick is completeddefault voidonPreTabComplete(TabCompleteEvent event) Runs whenever the client player tries to tab complete in chat.default voidonReceivePacket(PacketEvent event) Runs before an inbound packet is processeddefault voidonRenderPass(RenderEvent event) Runs once per world render pass.default voidonSendChatMessage(ChatEvent event) Runs whenever the client player sends a message to the server.default voidonSendPacket(PacketEvent event) Runs before a outbound packet is sentdefault voidRun once per game tick before screen input is handled.default voidonWorldEvent(WorldEvent event) Runs before and after whenever a new world is loaded
-
Method Details
-
onTick
Description copied from interface:IGameEventListenerRun once per game tick before screen input is handled.- Specified by:
onTickin interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onPostTick
Description copied from interface:IGameEventListenerRun once per game tick after the tick is completed- Specified by:
onPostTickin interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onPlayerUpdate
Description copied from interface:IGameEventListenerRun once per game tick from before and after the player rotation is sent to the server.- Specified by:
onPlayerUpdatein interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onSendChatMessage
Description copied from interface:IGameEventListenerRuns whenever the client player sends a message to the server.- Specified by:
onSendChatMessagein interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onPreTabComplete
Description copied from interface:IGameEventListenerRuns whenever the client player tries to tab complete in chat.- Specified by:
onPreTabCompletein interfaceIGameEventListener- Parameters:
event- The event
-
onChunkEvent
Description copied from interface:IGameEventListenerRuns before and after whenever a chunk is either loaded, unloaded, or populated.- Specified by:
onChunkEventin interfaceIGameEventListener- Parameters:
event- The event
-
onBlockChange
Description copied from interface:IGameEventListenerRuns after a single or multi block change packet is received and processed.- Specified by:
onBlockChangein interfaceIGameEventListener- Parameters:
event- The event
-
onRenderPass
Description copied from interface:IGameEventListenerRuns once per world render pass.- Specified by:
onRenderPassin interfaceIGameEventListener- Parameters:
event- The event
-
onWorldEvent
Description copied from interface:IGameEventListenerRuns before and after whenever a new world is loaded- Specified by:
onWorldEventin interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onSendPacket
Description copied from interface:IGameEventListenerRuns before a outbound packet is sent- Specified by:
onSendPacketin interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onReceivePacket
Description copied from interface:IGameEventListenerRuns before an inbound packet is processed- Specified by:
onReceivePacketin interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onPlayerRotationMove
Description copied from interface:IGameEventListenerRun once per game tick from before and after the player's moveRelative method is called and before and after the player jumps.- Specified by:
onPlayerRotationMovein interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onPlayerSprintState
Description copied from interface:IGameEventListenerCalled whenever the sprint keybind state is checked inLocalPlayer.aiStep()- Specified by:
onPlayerSprintStatein interfaceIGameEventListener- Parameters:
event- The event- See Also:
-
onBlockInteract
Description copied from interface:IGameEventListenerCalled when the local player interacts with a block, whether it is breaking or opening/placing.- Specified by:
onBlockInteractin interfaceIGameEventListener- Parameters:
event- The event
-
onPlayerDeath
Description copied from interface:IGameEventListenerCalled when the local player dies, as indicated by the creation of theDeathScreenscreen.- Specified by:
onPlayerDeathin interfaceIGameEventListener- See Also:
-
onPathEvent
Description copied from interface:IGameEventListenerWhen the pathfinder's state changes- Specified by:
onPathEventin interfaceIGameEventListener- Parameters:
event- The event
-