mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Rename onTouch
This commit is contained in:
parent
b612f3c257
commit
ddae239e30
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user