001/* 002 * This file is part of Baritone. 003 * 004 * Baritone is free software: you can redistribute it and/or modify 005 * it under the terms of the GNU Lesser General Public License as published by 006 * the Free Software Foundation, either version 3 of the License, or 007 * (at your option) any later version. 008 * 009 * Baritone is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 012 * GNU Lesser General Public License for more details. 013 * 014 * You should have received a copy of the GNU Lesser General Public License 015 * along with Baritone. If not, see <https://www.gnu.org/licenses/>. 016 */ 017 018package baritone.api.event.listener; 019 020import baritone.api.event.events.*; 021 022/** 023 * An implementation of {@link IGameEventListener} that has all methods 024 * overridden with empty bodies, allowing inheritors of this class to choose 025 * which events they would like to listen in on. 026 * 027 * @author Brady 028 * @see IGameEventListener 029 * @since 8/1/2018 030 */ 031public interface AbstractGameEventListener extends IGameEventListener { 032 033 @Override 034 default void onTick(TickEvent event) {} 035 036 @Override 037 default void onPlayerUpdate(PlayerUpdateEvent event) {} 038 039 @Override 040 default void onSendChatMessage(ChatEvent event) {} 041 042 @Override 043 default void onPreTabComplete(TabCompleteEvent event) {} 044 045 @Override 046 default void onChunkEvent(ChunkEvent event) {} 047 048 @Override 049 default void onRenderPass(RenderEvent event) {} 050 051 @Override 052 default void onWorldEvent(WorldEvent event) {} 053 054 @Override 055 default void onSendPacket(PacketEvent event) {} 056 057 @Override 058 default void onReceivePacket(PacketEvent event) {} 059 060 @Override 061 default void onPlayerRotationMove(RotationMoveEvent event) {} 062 063 @Override 064 default void onPlayerSprintState(SprintStateEvent event) {} 065 066 @Override 067 default void onBlockInteract(BlockInteractEvent event) {} 068 069 @Override 070 default void onPlayerDeath() {} 071 072 @Override 073 default void onPathEvent(PathEvent event) {} 074}