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