public interface IGameEventListener
Modifier and Type | Method and Description |
---|---|
void |
onBlockInteract(BlockInteractEvent event)
Called when the local player interacts with a block, whether it is breaking or opening/placing.
|
void |
onChunkEvent(ChunkEvent event)
Runs before and after whenever a chunk is either loaded, unloaded, or populated.
|
void |
onPathEvent(PathEvent event)
When the pathfinder's state changes
|
void |
onPlayerDeath()
Called when the local player dies, as indicated by the creation of the
GuiGameOver screen. |
void |
onPlayerRotationMove(RotationMoveEvent event)
Run once per game tick from before and after the player's moveRelative method is called
and before and after the player jumps.
|
void |
onPlayerSprintState(SprintStateEvent event)
Called whenever the sprint keybind state is checked in
EntityPlayerSP.onLivingUpdate() |
void |
onPlayerUpdate(PlayerUpdateEvent event)
Run once per game tick from before and after the player rotation is sent to the server.
|
void |
onPreTabComplete(TabCompleteEvent event)
Runs whenever the client player tries to tab complete in chat.
|
void |
onReceivePacket(PacketEvent event)
Runs before an inbound packet is processed
|
void |
onRenderPass(RenderEvent event)
Runs once per world render pass.
|
void |
onSendChatMessage(ChatEvent event)
Runs whenever the client player sends a message to the server.
|
void |
onSendPacket(PacketEvent event)
Runs before a outbound packet is sent
|
void |
onTick(TickEvent event)
Run once per game tick before screen input is handled.
|
void |
onWorldEvent(WorldEvent event)
Runs before and after whenever a new world is loaded
|
void onTick(TickEvent event)
event
- The eventMinecraft.runTick()
void onPlayerUpdate(PlayerUpdateEvent event)
event
- The eventEntityPlayerSP.onUpdate()
void onSendChatMessage(ChatEvent event)
event
- The eventEntityPlayerSP.sendChatMessage(String)
void onPreTabComplete(TabCompleteEvent event)
event
- The eventvoid onChunkEvent(ChunkEvent event)
event
- The eventWorldClient.doPreChunk(int, int, boolean)
void onRenderPass(RenderEvent event)
GameSettings.anaglyph
is on.
Note: GameSettings.anaglyph
has been removed in Minecraft 1.13
event
- The eventvoid onWorldEvent(WorldEvent event)
event
- The eventMinecraft.loadWorld(WorldClient, String)
void onSendPacket(PacketEvent event)
event
- The eventPacket
,
GenericFutureListener
void onReceivePacket(PacketEvent event)
event
- The eventPacket
,
GenericFutureListener
void onPlayerRotationMove(RotationMoveEvent event)
event
- The eventEntity.moveRelative(float, float, float, float)
void onPlayerSprintState(SprintStateEvent event)
EntityPlayerSP.onLivingUpdate()
event
- The eventEntityPlayerSP.onLivingUpdate()
void onBlockInteract(BlockInteractEvent event)
event
- The eventvoid onPlayerDeath()
GuiGameOver
screen.GuiGameOver
void onPathEvent(PathEvent event)
event
- The event