From 919183480d66d77bbfbbd717ce1d1ee5baf53d5c Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:20:47 +0900 Subject: [PATCH] Add private ctor to ClientPlayerBlockBreakEvents Not related to port, but something I've found during the process. Also adds final to CommonLifecycleEvents. --- .../event/client/player/ClientPlayerBlockBreakEvents.java | 5 ++++- .../fabric/api/event/lifecycle/v1/CommonLifecycleEvents.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fabric-events-interaction-v0/src/client/java/net/fabricmc/fabric/api/event/client/player/ClientPlayerBlockBreakEvents.java b/fabric-events-interaction-v0/src/client/java/net/fabricmc/fabric/api/event/client/player/ClientPlayerBlockBreakEvents.java index d817088c3a..ecefa3549a 100644 --- a/fabric-events-interaction-v0/src/client/java/net/fabricmc/fabric/api/event/client/player/ClientPlayerBlockBreakEvents.java +++ b/fabric-events-interaction-v0/src/client/java/net/fabricmc/fabric/api/event/client/player/ClientPlayerBlockBreakEvents.java @@ -30,7 +30,10 @@ *
For preventing block breaking client side and other purposes, see {@link net.fabricmc.fabric.api.event.player.AttackBlockCallback}. * For server side block break events, see {@link net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents}. */ -public class ClientPlayerBlockBreakEvents { +public final class ClientPlayerBlockBreakEvents { + private ClientPlayerBlockBreakEvents() { + } + /** * Callback after a block is broken client side. * diff --git a/fabric-lifecycle-events-v1/src/main/java/net/fabricmc/fabric/api/event/lifecycle/v1/CommonLifecycleEvents.java b/fabric-lifecycle-events-v1/src/main/java/net/fabricmc/fabric/api/event/lifecycle/v1/CommonLifecycleEvents.java index 8c3f9a82e7..27750b6539 100644 --- a/fabric-lifecycle-events-v1/src/main/java/net/fabricmc/fabric/api/event/lifecycle/v1/CommonLifecycleEvents.java +++ b/fabric-lifecycle-events-v1/src/main/java/net/fabricmc/fabric/api/event/lifecycle/v1/CommonLifecycleEvents.java @@ -21,7 +21,7 @@ import net.fabricmc.fabric.api.event.Event; import net.fabricmc.fabric.api.event.EventFactory; -public class CommonLifecycleEvents { +public final class CommonLifecycleEvents { private CommonLifecycleEvents() { }