@@ -60,7 +60,7 @@ public void preMouseClicked(boolean[] bls, double d, double e, int button, Callb
6060 }
6161
6262 @ Inject (method = "method_1611" , at = @ At ("RETURN" ), locals = LocalCapture .CAPTURE_FAILHARD , cancellable = true )
63- public void postMouseClicked (boolean [] bls , double d , double e , int button , CallbackInfo info ) {
63+ private void postMouseClicked (boolean [] bls , double d , double e , int button , CallbackInfo info ) {
6464 if (bls [0 ]) {
6565 return ;
6666 }
@@ -72,15 +72,15 @@ public void postMouseClicked(boolean[] bls, double d, double e, int button, Call
7272 }
7373
7474 @ Inject (method = "method_1605" , at = @ At ("HEAD" ), locals = LocalCapture .CAPTURE_FAILHARD , cancellable = true )
75- public void preMouseReleased (boolean [] bls , double d , double e , int button , CallbackInfo info ) {
75+ private void preMouseReleased (boolean [] bls , double d , double e , int button , CallbackInfo info ) {
7676 if (MinecraftForge .EVENT_BUS .post (new GuiScreenEvent .MouseReleasedEvent .Pre (client .currentScreen , d , e , button ))) {
7777 bls [0 ] = true ;
7878 info .cancel ();
7979 }
8080 }
8181
8282 @ Inject (method = "method_1605" , at = @ At ("RETURN" ), locals = LocalCapture .CAPTURE_FAILHARD )
83- public void postMouseReleased (boolean [] bls , double d , double e , int button , CallbackInfo info ) {
83+ private void postMouseReleased (boolean [] bls , double d , double e , int button , CallbackInfo info ) {
8484 if (bls [0 ]) {
8585 return ;
8686 }
@@ -92,21 +92,21 @@ public void postMouseReleased(boolean[] bls, double d, double e, int button, Cal
9292 }
9393
9494 @ Inject (method = "method_1602" , at = @ At ("HEAD" ), cancellable = true )
95- public void preMouseDragged (Element element , double d , double e , double f , double g , CallbackInfo info ) {
95+ private void preMouseDragged (Element element , double d , double e , double f , double g , CallbackInfo info ) {
9696 if (MinecraftForge .EVENT_BUS .post (new GuiScreenEvent .MouseDragEvent .Pre (client .currentScreen , d , e , activeButton , f , g ))) {
9797 info .cancel ();
9898 }
9999 }
100100
101101 @ Inject (method = "method_1602" , at = @ At ("RETURN" ))
102- public void postMouseDragged (Element element , double d , double e , double f , double g , CallbackInfo info ) {
102+ private void postMouseDragged (Element element , double d , double e , double f , double g , CallbackInfo info ) {
103103 MinecraftForge .EVENT_BUS .post (new GuiScreenEvent .MouseDragEvent .Post (client .currentScreen , d , e , activeButton , f , g ));
104104 }
105105
106106 @ Inject (method = "onMouseScroll" , at = @ At (value = "INVOKE" ,
107107 target = "Lnet/minecraft/client/gui/screen/Screen;mouseScrolled(DDD)Z" ,
108108 ordinal = 0 ), locals = LocalCapture .CAPTURE_FAILHARD , cancellable = true )
109- public void preMouseScrolled (long window , double d , double e , CallbackInfo ci , double f , double g , double h ) {
109+ private void preMouseScrolled (long window , double d , double e , CallbackInfo ci , double f , double g , double h ) {
110110 if (MinecraftForge .EVENT_BUS .post (new GuiScreenEvent .MouseScrollEvent .Pre (client .currentScreen , g , h , f ))) {
111111 ci .cancel ();
112112 }
@@ -115,7 +115,7 @@ public void preMouseScrolled(long window, double d, double e, CallbackInfo ci, d
115115 @ Inject (method = "onMouseScroll" , at = @ At (value = "INVOKE" ,
116116 target = "Lnet/minecraft/client/gui/screen/Screen;mouseScrolled(DDD)Z" ,
117117 ordinal = 0 , shift = At .Shift .BY , by = 2 ), locals = LocalCapture .CAPTURE_FAILHARD , cancellable = true )
118- public void postMouseScrolled (long window , double d , double e , CallbackInfo ci , double f , double g , double h ) {
118+ private void postMouseScrolled (long window , double d , double e , CallbackInfo ci , double f , double g , double h ) {
119119 MinecraftForge .EVENT_BUS .post (new GuiScreenEvent .MouseScrollEvent .Post (client .currentScreen , g , h , f ));
120120 }
121121
0 commit comments