Rename onTouch

This commit is contained in:
TheMode 2021-06-17 15:11:19 +02:00
parent b612f3c257
commit ddae239e30
2 changed files with 2 additions and 2 deletions

View File

@ -615,7 +615,7 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, 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));
}
}
}

View File

@ -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<Tag<?>> getBlockEntityTags() {