Move events to api package

This commit is contained in:
Brady 2018-08-27 19:37:21 -05:00
parent 423087cc12
commit 43b7aece74
No known key found for this signature in database
GPG Key ID: 73A788379A197567
33 changed files with 62 additions and 63 deletions

View File

@ -22,7 +22,7 @@ import baritone.behavior.impl.LookBehavior;
import baritone.behavior.impl.MemoryBehavior;
import baritone.behavior.impl.PathingBehavior;
import baritone.behavior.impl.LocationTrackingBehavior;
import baritone.event.GameEventHandler;
import baritone.api.event.GameEventHandler;
import baritone.utils.InputOverrideHandler;
import net.minecraft.client.Minecraft;

View File

@ -32,13 +32,13 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event;
package baritone.api.event;
import baritone.Baritone;
import baritone.chunk.WorldProvider;
import baritone.event.events.*;
import baritone.event.events.type.EventState;
import baritone.event.listener.IGameEventListener;
import baritone.api.event.events.*;
import baritone.api.event.events.type.EventState;
import baritone.api.event.listener.IGameEventListener;
import baritone.utils.Helper;
import baritone.utils.InputOverrideHandler;
import baritone.utils.interfaces.Toggleable;

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import net.minecraft.util.math.BlockPos;

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.events.type.Cancellable;
import baritone.api.event.events.type.Cancellable;
/**
* @author Brady

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.events.type.EventState;
import baritone.api.event.events.type.EventState;
/**
* @author Brady

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.listener.IGameEventListener;
import baritone.api.event.listener.IGameEventListener;
/**
* Called in some cases where a player's inventory has it's current slot queried.

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.events.type.EventState;
import baritone.api.event.events.type.EventState;
import net.minecraft.network.Packet;
/**

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
public enum PathEvent {
CALC_STARTED,

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.events.type.EventState;
import baritone.api.event.events.type.EventState;
/**
* @author Brady

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.events.type.EventState;
import baritone.api.event.events.type.EventState;
/**
* @author Brady

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
/**
* @author Brady

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.events.type.EventState;
import baritone.api.event.events.type.EventState;
public final class TickEvent {

View File

@ -15,9 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events;
package baritone.api.event.events;
import baritone.event.events.type.EventState;
import baritone.api.event.events.type.EventState;
import net.minecraft.client.multiplayer.WorldClient;
/**

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events.type;
package baritone.api.event.events.type;
/**
* @author Brady

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.events.type;
package baritone.api.event.events.type;
/**
* @author Brady

View File

@ -32,9 +32,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.listener;
package baritone.api.event.listener;
import baritone.event.events.*;
import baritone.api.event.events.*;
/**
* An implementation of {@link IGameEventListener} that has all methods

View File

@ -32,9 +32,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.event.listener;
package baritone.api.event.listener;
import baritone.event.events.*;
import baritone.api.event.events.*;
import io.netty.util.concurrent.GenericFutureListener;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;

View File

@ -17,7 +17,7 @@
package baritone.behavior;
import baritone.event.listener.AbstractGameEventListener;
import baritone.api.event.listener.AbstractGameEventListener;
import baritone.utils.Helper;
import baritone.utils.interfaces.Toggleable;

View File

@ -20,7 +20,7 @@ package baritone.behavior.impl;
import baritone.behavior.Behavior;
import baritone.chunk.Waypoint;
import baritone.chunk.WorldProvider;
import baritone.event.events.BlockInteractEvent;
import baritone.api.event.events.BlockInteractEvent;
import baritone.utils.BlockStateInterface;
import net.minecraft.block.BlockBed;

View File

@ -20,9 +20,8 @@ package baritone.behavior.impl;
import baritone.Baritone;
import baritone.Settings;
import baritone.behavior.Behavior;
import baritone.event.events.PlayerUpdateEvent;
import baritone.event.events.RelativeMoveEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.PlayerUpdateEvent;
import baritone.api.event.events.RelativeMoveEvent;
import baritone.utils.Rotation;
public class LookBehavior extends Behavior {

View File

@ -1,9 +1,9 @@
package baritone.behavior.impl;
import baritone.behavior.Behavior;
import baritone.event.events.PacketEvent;
import baritone.event.events.PlayerUpdateEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.PacketEvent;
import baritone.api.event.events.PlayerUpdateEvent;
import baritone.api.event.events.type.EventState;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.CPacketCloseWindow;

View File

@ -19,10 +19,10 @@ package baritone.behavior.impl;
import baritone.Baritone;
import baritone.behavior.Behavior;
import baritone.event.events.PathEvent;
import baritone.event.events.PlayerUpdateEvent;
import baritone.event.events.RenderEvent;
import baritone.event.events.TickEvent;
import baritone.api.event.events.PathEvent;
import baritone.api.event.events.PlayerUpdateEvent;
import baritone.api.event.events.RenderEvent;
import baritone.api.event.events.TickEvent;
import baritone.pathing.calc.AStarPathFinder;
import baritone.pathing.calc.AbstractNodeCostSearch;
import baritone.pathing.calc.IPathFinder;

View File

@ -18,8 +18,8 @@
package baritone.launch.mixins;
import baritone.Baritone;
import baritone.event.events.RelativeMoveEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.RelativeMoveEvent;
import baritone.api.event.events.type.EventState;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import org.spongepowered.asm.mixin.Mixin;

View File

@ -18,9 +18,9 @@
package baritone.launch.mixins;
import baritone.Baritone;
import baritone.event.events.ChatEvent;
import baritone.event.events.PlayerUpdateEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.ChatEvent;
import baritone.api.event.events.PlayerUpdateEvent;
import baritone.api.event.events.type.EventState;
import net.minecraft.client.entity.EntityPlayerSP;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

View File

@ -18,7 +18,7 @@
package baritone.launch.mixins;
import baritone.Baritone;
import baritone.event.events.RenderEvent;
import baritone.api.event.events.RenderEvent;
import net.minecraft.client.renderer.EntityRenderer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

View File

@ -18,7 +18,7 @@
package baritone.launch.mixins;
import baritone.Baritone;
import baritone.event.events.ItemSlotEvent;
import baritone.api.event.events.ItemSlotEvent;
import net.minecraft.entity.player.InventoryPlayer;
import org.spongepowered.asm.lib.Opcodes;
import org.spongepowered.asm.mixin.Mixin;

View File

@ -19,10 +19,10 @@ package baritone.launch.mixins;
import baritone.Baritone;
import baritone.behavior.impl.PathingBehavior;
import baritone.event.events.BlockInteractEvent;
import baritone.event.events.TickEvent;
import baritone.event.events.WorldEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.BlockInteractEvent;
import baritone.api.event.events.TickEvent;
import baritone.api.event.events.WorldEvent;
import baritone.api.event.events.type.EventState;
import baritone.utils.ExampleBaritoneControl;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;

View File

@ -18,8 +18,8 @@
package baritone.launch.mixins;
import baritone.Baritone;
import baritone.event.events.ChunkEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.ChunkEvent;
import baritone.api.event.events.type.EventState;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.network.play.server.SPacketChunkData;
import net.minecraft.network.play.server.SPacketCombatEvent;

View File

@ -18,8 +18,8 @@
package baritone.launch.mixins;
import baritone.Baritone;
import baritone.event.events.PacketEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.PacketEvent;
import baritone.api.event.events.type.EventState;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.util.concurrent.Future;

View File

@ -18,8 +18,8 @@
package baritone.launch.mixins;
import baritone.Baritone;
import baritone.event.events.ChunkEvent;
import baritone.event.events.type.EventState;
import baritone.api.event.events.ChunkEvent;
import baritone.api.event.events.type.EventState;
import net.minecraft.client.multiplayer.WorldClient;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

View File

@ -18,7 +18,7 @@
package baritone.pathing.path;
import baritone.Baritone;
import baritone.event.events.TickEvent;
import baritone.api.event.events.TickEvent;
import baritone.pathing.movement.ActionCosts;
import baritone.pathing.movement.Movement;
import baritone.pathing.movement.MovementState;

View File

@ -24,7 +24,7 @@ import baritone.behavior.impl.PathingBehavior;
import baritone.chunk.ChunkPacker;
import baritone.chunk.Waypoint;
import baritone.chunk.WorldProvider;
import baritone.event.events.ChatEvent;
import baritone.api.event.events.ChatEvent;
import baritone.pathing.calc.AStarPathFinder;
import baritone.pathing.goals.*;
import baritone.pathing.movement.ActionCosts;

View File

@ -18,8 +18,8 @@
package baritone.utils;
import baritone.Baritone;
import baritone.event.events.ItemSlotEvent;
import baritone.event.listener.AbstractGameEventListener;
import baritone.api.event.events.ItemSlotEvent;
import baritone.api.event.listener.AbstractGameEventListener;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;