
cruXcon
Members-
Content Count
10 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout cruXcon
-
Rank
Tree Puncher
Converted
-
Gender
Male
-
Location
Germany
-
That is too bad. Thank you for your quick reply
-
so this was removed in 1.9 or why has it worked before?
-
was this changed in 1.9 or why isn't it working anymore? And isn't there another possibility to proof whether an animal is ready for breeding?
-
I am using Forge 1.9.4-12.17.0.1940 trying to check if an Animal is able to create a new Child. In the last versions i could check if getGrowingAge() == 0. The function description of getGrowingAge is: Now the problem is, that getGrowingAge() never is 0. It is 1 for adult animals and -1 for children. Normally it should trend to 0 but it doesn't seem to change a little bit. Is this behavior a Forge bug or my fault?
-
[1.7.2]KeyBinding.isPressed() Build:10.12.0.1024:
cruXcon replied to cruXcon's topic in Modder Support
Thank you Dude! In the end this was the solution: gradlew --refresh-dependencies build This thread can be closed. -
[1.7.2]KeyBinding.isPressed() Build:10.12.0.1024:
cruXcon replied to cruXcon's topic in Modder Support
KeyHandler was removed in 1.7.2 KeyHandler: The KeyBinding.class is placed in net.minecraft.client.settings -
[1.7.2]KeyBinding.isPressed() Build:10.12.0.1024:
cruXcon replied to cruXcon's topic in Modder Support
Okay, thank you for this. The line where the StackTrace starts is: "if(mybinding.isPressed())" I inserted world.isRemote but my Problem now is, how do i get the World Object and which one is right. This is the part where i am accessing to the Keybind: @SubscribeEvent public void KeyInputEvent(InputEvent.KeyInputEvent event) { if (!FMLClientHandler.instance().isGUIOpen(GuiChat.class)) { if(mybinding.isPressed() && world.isRemote) { EntityClientPlayerMP var2 = FMLClientHandler.instance().getClient().thePlayer; FMLClientHandler.instance().disp -
[1.7.2]KeyBinding.isPressed() Build:10.12.0.1024:
cruXcon replied to cruXcon's topic in Modder Support
Ok i changed it, but it doesn't work anyway. Any suggestions? Now i changed the main part to: This is my ClientProxy: And this is my CommonProxy -
[1.7.2]KeyBinding.isPressed() Build:10.12.0.1024:
cruXcon replied to cruXcon's topic in Modder Support
Yes i reobfuscated and used the files of build/classes/main. This is the full Code of KeyHandler.class If you need more, just tell me. and this is where i register the KeyHandler: public void load(FMLInitializationEvent event) { proxy.registerRenderers(); FMLCommonHandler.instance().bus().register(new KeyHandler()); RenderBreedingItem Item = new RenderBreedingItem(); Item.load(); } -
I tried to write a KeyHandler, but when i used the Method "Keybinding.isPressed()" everything works fine in Eclipse, but after recompiling and testing with my normal Launcher i got this StackTrace: This is the code, the StackTrace points to. if(this.stats.isPressed()) { EntityClientPlayerMP var2 = FMLClientHandler.instance().getClient().thePlayer; FMLClientHandler.instance().displayGuiScreen(var2, new GuiCowMod()); } Thanks for your help