baritone/src/main/java/baritone/bot/event/listener/AbstractGameEventListener.java

84 lines
2.5 KiB
Java
Raw Normal View History

2018-08-08 03:16:53 +00:00
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
2018-08-08 03:16:53 +00:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
2018-08-11 05:03:16 +00:00
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.bot.event.listener;
2018-08-02 01:46:51 +00:00
2018-08-05 23:50:24 +00:00
import baritone.bot.event.events.*;
2018-08-02 01:46:51 +00:00
/**
* An implementation of {@link IGameEventListener} that has all methods
2018-08-05 23:40:10 +00:00
* overridden with empty bodies, allowing inheritors of this class to choose
2018-08-02 01:46:51 +00:00
* which events they would like to listen in on.
*
* @see IGameEventListener
*
* @author Brady
* @since 8/1/2018 6:29 PM
*/
public interface AbstractGameEventListener extends IGameEventListener {
@Override
2018-08-05 23:50:24 +00:00
default void onTick(TickEvent event) {}
2018-08-02 01:46:51 +00:00
2018-08-05 02:58:32 +00:00
@Override
default void onPlayerUpdate(PlayerUpdateEvent event) {}
2018-08-05 02:58:32 +00:00
2018-08-02 01:46:51 +00:00
@Override
default void onProcessKeyBinds() {}
@Override
default void onSendChatMessage(ChatEvent event) {}
2018-08-02 07:45:15 +00:00
@Override
default void onChunkEvent(ChunkEvent event) {}
2018-08-05 01:55:38 +00:00
@Override
default void onRenderPass(RenderEvent event) {}
2018-08-05 04:44:42 +00:00
@Override
default void onWorldEvent(WorldEvent event) {}
@Override
default void onSendPacket(PacketEvent event) {}
@Override
default void onReceivePacket(PacketEvent event) {}
@Override
default void onQueryItemSlotForBlocks(ItemSlotEvent event) {}
2018-08-21 23:19:20 +00:00
@Override
default void onPlayerRelativeMove(RelativeMoveEvent event) {}
2018-08-02 01:46:51 +00:00
}