@@ -77,17 +77,17 @@ public void clickMouse(ClickEvent.MouseButton button) {
7777 }
7878
7979 @ Inject (method = "runTick" , at = @ At ("HEAD" ))
80- public void onTick (CallbackInfo ci ) {
80+ private void onTick (CallbackInfo ci ) {
8181 ClientAPI .EVENT_BUS .post (new TickEvent ());
8282 }
8383
8484 @ Inject (method = "runGameLoop" , at = @ At ("HEAD" ))
85- public void onLoop (CallbackInfo ci ) {
85+ private void onLoop (CallbackInfo ci ) {
8686 ClientAPI .EVENT_BUS .post (new LoopEvent ());
8787 }
8888
8989 @ Inject (method = "runTickKeyboard" , at = @ At (value = "INVOKE_ASSIGN" , target = "org/lwjgl/input/Keyboard.getEventKeyState()Z" , remap = false ))
90- public void onKeyEvent (CallbackInfo ci ) {
90+ private void onKeyEvent (CallbackInfo ci ) {
9191 if (currentScreen != null )
9292 return ;
9393
@@ -98,7 +98,7 @@ public void onKeyEvent(CallbackInfo ci) {
9898 }
9999
100100 @ Inject (method = "init" , at = @ At ("RETURN" ))
101- public void init (CallbackInfo ci ) {
101+ private void init (CallbackInfo ci ) {
102102 // Try and find the "client.json" config
103103 InputStream stream = this .getClass ().getResourceAsStream ("/client.json" );
104104
@@ -141,29 +141,29 @@ public void init(CallbackInfo ci) {
141141 }
142142
143143 @ Inject (method = "clickMouse" , at = @ At ("HEAD" ))
144- public void clickMouse (CallbackInfo ci ) {
144+ private void clickMouse (CallbackInfo ci ) {
145145 ClientAPI .EVENT_BUS .post (new ClickEvent (LEFT ));
146146 }
147147
148148 @ Inject (method = "rightClickMouse" , at = @ At ("HEAD" ))
149- public void rightClickMouse (CallbackInfo ci ) {
149+ private void rightClickMouse (CallbackInfo ci ) {
150150 ClientAPI .EVENT_BUS .post (new ClickEvent (RIGHT ));
151151 }
152152
153153 @ Inject (method = "middleClickMouse" , at = @ At ("HEAD" ))
154- public void middleClickMouse (CallbackInfo ci ) {
154+ private void middleClickMouse (CallbackInfo ci ) {
155155 ClientAPI .EVENT_BUS .post (new ClickEvent (MIDDLE ));
156156 }
157157
158158 @ ModifyVariable (method = "displayGuiScreen" , at = @ At ("HEAD" ))
159- public GuiScreen displayGuiScreen (GuiScreen screen ) {
159+ private GuiScreen displayGuiScreen (GuiScreen screen ) {
160160 GuiEvent event = new GuiEvent (screen );
161161 ClientAPI .EVENT_BUS .post (event );
162162 return event .getScreen ();
163163 }
164164
165165 @ Inject (method = "loadWorld(Lnet/minecraft/client/multiplayer/WorldClient;Ljava/lang/String;)V" , at = @ At ("HEAD" ))
166- public void loadWorld (@ Nullable WorldClient worldClientIn , String loadingMessage , CallbackInfo ci ) {
166+ private void loadWorld (@ Nullable WorldClient worldClientIn , String loadingMessage , CallbackInfo ci ) {
167167 // If the world is null, then it must be unloading
168168 if (worldClientIn != null )
169169 ClientAPI .EVENT_BUS .post (new WorldEvent .Load (worldClientIn ));
@@ -172,7 +172,7 @@ public void loadWorld(@Nullable WorldClient worldClientIn, String loadingMessage
172172 }
173173
174174 @ Inject (method = "shutdown" , at = @ At ("HEAD" ), cancellable = true )
175- public void shutdown (CallbackInfo ci ) {
175+ private void shutdown (CallbackInfo ci ) {
176176 GameShutdownEvent event = new GameShutdownEvent ();
177177 ClientAPI .EVENT_BUS .post (event );
178178 if (event .isCancelled ())
0 commit comments