From ddae239e30e83d9c0bd07c453791a622404f8aea Mon Sep 17 00:00:00 2001 From: TheMode Date: Thu, 17 Jun 2021 15:11:19 +0200 Subject: [PATCH] Rename onTouch --- src/main/java/net/minestom/server/entity/Entity.java | 2 +- .../java/net/minestom/server/instance/block/BlockHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index fc8f5eee0..a42b657cc 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -615,7 +615,7 @@ public class Entity implements Viewable, Tickable, EventHandler, Da // checks that we are actually in the block, and not just here because of a rounding error if (boundingBox.intersect(tmpPosition)) { // TODO: replace with check with custom block bounding box - handler.handleContact(BlockHandler.Touch.from(block, instance, tmpPosition, this)); + handler.onTouch(BlockHandler.Touch.from(block, instance, tmpPosition, this)); } } } diff --git a/src/main/java/net/minestom/server/instance/block/BlockHandler.java b/src/main/java/net/minestom/server/instance/block/BlockHandler.java index c62fdc9c4..729092a58 100644 --- a/src/main/java/net/minestom/server/instance/block/BlockHandler.java +++ b/src/main/java/net/minestom/server/instance/block/BlockHandler.java @@ -51,7 +51,7 @@ public interface BlockHandler { * * @param touch the contact details */ - default void handleContact(@NotNull Touch touch) { + default void onTouch(@NotNull Touch touch) { } default @NotNull Collection> getBlockEntityTags() {