-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By TileEntity · Posted
Try another Java build https://www.azul.com/downloads/#zulu and set the path to C:\Program Files\Zulu\zulu-17\bin\javaw.exe -
That's what's so odd. Because I shift-clicked to get the file path & it literally is the same exact thing: (copy + pasted from folder) "C:\Program Files\Java\jdk-17\bin\javaw.exe"
-
By 1BlackWingDragon · Posted
updated a few mods and now my pack won't load https://paste.ee/p/0sUrp -
I have installed Forge 1000 times and in different versions, but every time I enter a server or world, it loads the entire square and then it says ''Saving world''. After that, Minecraft closes and the launcher opens with a window displaying error code ''-1''. I don't even have any mods installed, it doesn't let me join any world or server. I contacted Minecraft support, and they told me to talk to you. I hope you can help me with this issue, I'm waiting for your response.
-
By Jonas Handtke · Posted
I'm trying to make a Event that is fired if a Player is swimming. Here is the Event Class: public class PlayerSwimEvent extends PlayerEvent { public PlayerSwimEvent(Player player) { super(player); } } Here is the Hooks (similar to ForgeHooks Class) that has Methods for the Events: public class EventHooks { public static void onPlayerSwim(Player player) { MinecraftForge.EVENT_BUS.post(new PlayerSwimEvent(player)); } } And here is the Mixin Class: @Mixin(value = Player.class) public class MixinPlayerSwimEvent { @Inject(method = "isSwimming", at = @At("HEAD")) public boolean isSwimming(CallbackInfoReturnable<Boolean> cir) { Player player = null; if (!player.getAbilities().flying && !player.isSpectator()) { EventHooks.onPlayerSwim(player); } return cir.getReturnValue(); } } My Issue is now that I don't get it to work because of the missing Parameter Player. Can someone help with this?
-
-
Topics
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.