From 35efd9293b76e9615faa7ca9ed1aae5dabc33597 Mon Sep 17 00:00:00 2001 From: Brady Date: Thu, 13 Dec 2018 18:22:33 -0600 Subject: [PATCH] BlockInteractEvent Type clarification --- .../java/baritone/api/event/events/BlockInteractEvent.java | 6 +++--- src/launch/java/baritone/launch/mixins/MixinMinecraft.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/java/baritone/api/event/events/BlockInteractEvent.java b/src/api/java/baritone/api/event/events/BlockInteractEvent.java index fbdadba19..6508d7397 100644 --- a/src/api/java/baritone/api/event/events/BlockInteractEvent.java +++ b/src/api/java/baritone/api/event/events/BlockInteractEvent.java @@ -20,7 +20,7 @@ package baritone.api.event.events; import net.minecraft.util.math.BlockPos; /** - * Called when the local player interacts with a block, can be either {@link Type#BREAK} or {@link Type#USE}. + * Called when the local player interacts with a block, can be either {@link Type#START_BREAK} or {@link Type#USE}. * * @author Brady * @since 8/22/2018 @@ -59,9 +59,9 @@ public final class BlockInteractEvent { public enum Type { /** - * We're breaking the target block. + * We're starting to break the target block. */ - BREAK, + START_BREAK, /** * We're right clicking on the target block. Either placing or interacting with. diff --git a/src/launch/java/baritone/launch/mixins/MixinMinecraft.java b/src/launch/java/baritone/launch/mixins/MixinMinecraft.java index 12e915745..7e30d9a03 100644 --- a/src/launch/java/baritone/launch/mixins/MixinMinecraft.java +++ b/src/launch/java/baritone/launch/mixins/MixinMinecraft.java @@ -164,7 +164,7 @@ public class MixinMinecraft { ) private void onBlockBreak(CallbackInfo ci, BlockPos pos) { // clickMouse is only for the main player - BaritoneAPI.getProvider().getPrimaryBaritone().getGameEventHandler().onBlockInteract(new BlockInteractEvent(pos, BlockInteractEvent.Type.BREAK)); + BaritoneAPI.getProvider().getPrimaryBaritone().getGameEventHandler().onBlockInteract(new BlockInteractEvent(pos, BlockInteractEvent.Type.START_BREAK)); } @Inject(