Everything posted by enbecko
-
[1.7.10]Client world on server
Sure but normally the worldobj on the Server is an Object of WorldServer and Not WorldClient
-
[1.7.10]Client world on server
[20:41:26] [server thread/INFO] [sTDOUT]: [com.roller.roller.tileEntity.EntityMainTrain:setsub:42]: net.minecraft.client.multiplayer.WorldClient@69420e33 System.out.println(this.worldObj) how can this happen that I have a client world on the server side? (Entity) Greetings, enbecko
-
[1.7.10]Rendering Entity subclasses different
So it's rendering correctly now, but server and client are asynchron. While the server entity is changing its position the client one is not... I had that problem earlier and fixed it but I forgot what I did that time
-
[1.7.10]Rendering Entity subclasses different
int id = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerModEntity(EntityTrain.class, "train", id, this, 80, 1, true); EntityRegistry.registerGlobalEntityID(EntityTrain.class, "train", id); int id3 = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerModEntity(EntityMainTrain.class, "mainTrain", id3, this, 80, 1, true); EntityRegistry.registerGlobalEntityID(EntityMainTrain.class, "mainTrain", id3); int id2 = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerModEntity(EntitySubTrain.class, "subTrain", id2, this, 80, 1, true); EntityRegistry.registerGlobalEntityID(EntitySubTrain.class, "subTrain", id2); where EntitySubTrain and EntityMainTrain are subclasses of EntityTrain The clientProxy: RenderingRegistry.registerEntityRenderingHandler(EntityMainTrain.class, new RenderTrain()); RenderingRegistry.registerEntityRenderingHandler(EntitySubTrain.class, new RenderSubTrain()); EDIT: The spawned Entity (regardless of what kind) has always the propertys of the first registered
-
[1.7.10]Rendering Entity subclasses different
Hey guys, I have an entity class and two subclasses from it. But it seems that they are not registered correctly as they are rendering the same although two different renderers have been registered but they still render as the main class. enbecko
-
[1.7.10]Changing public fields in Minecraft clientside
Thx works fine now
-
[1.7.10]Changing public fields in Minecraft clientside
Hey Guys, So I am trying to change the EntityRenderer of the Minecraft class like this Minecraft mc = Minecraft.getMinecraft(); if(this.worldObj.isRemote && mc.entityRenderer instanceof EntityRenderer2 == false) mc.entityRenderer = new EntityRenderer2(mc, mc.getResourceManager()); And it works for SSP perfectly as the EntityRenderer is my custom one but on SMP the game crashes as the EntityRenderer on the ServerSide is changed aswell (I always thought Minecraft.class was ClientSide only so I dont understand why it changes on the Server too) Greetings, enbecko
-
[Unsolved] [1.7.10] Rendering upside down
If you know a way of doing it i would be grateful
-
[Unsolved] [1.7.10] Rendering upside down
I tried to render the player's view upside down and I thought doing it via screenshots was a good idea, but it isn't
-
[Unsolved] [1.7.10] Rendering upside down
Hey Guys, is there any way to render the player's view upside down? I tried to do it with screenshots which were rendered upside down on top of everything but all in all that was do slow and buggy (which i actually was sure about before I even tried ) thanks in advance enbecko
-
[1.7.10] Turning HUD off
Hey guys, is there any way to turn off every HUD that's currently on (the one from from minecraft and possibly from mods) by code rather than with F1? Thanks in advance enbecko
-
[1.7.10] manipulating the Cameras rotation pitch
Hey guys, I am working on a mod where I need to change the cameras pitch. I thought of manipulating the players head rotation but I am not sure how to do it. So is this idea the right approach for that or is there another workaround? Thanks in advance enbecko
-
[1.7.10] Tesselator opacity
Hey, thanks for the help but i use these UVs only for tests but still I don't understand why Tileentitys rendered with the TileEntitySpecialRenderer get invisible behind the surface: GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(1, 1, 1, .5F); te.startDrawingQuads(); float xOff = -0.5F, yOff = -1.4F, zOff = -0.5F; te.addVertexWithUV(xOff, yOff+1, zOff+1, 0.3, .1); te.addVertexWithUV(xOff, yOff+1, zOff+2, 0.3, .1); te.addVertexWithUV(xOff+1, yOff+1, zOff+2, 0.3, .1); te.addVertexWithUV(xOff+1, yOff+1, zOff+1, 0.3, .1); te.draw(); GL11.glDisable(GL11.GL_BLEND); enbecko
-
[1.7.10] Tesselator opacity
Hey guys, I am trying to make surface on top of a tileentity. The code looks like this: Tessellator te = Tessellator.instance; GL11.glEnable(GL11.GL_BLEND); te.startDrawingQuads(); float xOff = -0.5F, yOff = -1.499F, zOff = -0.5F; te.setColorRGBA_F(1, 1, 1, 0.5f); te.addVertexWithUV(xOff, yOff+1, zOff, 0.3, 0.1); te.addVertexWithUV(xOff, yOff+1, zOff+1, 0.7, 0.1); te.addVertexWithUV(xOff+1, yOff+1, zOff+1, 0.3, 0.1); te.addVertexWithUV(xOff+1, yOff+1, zOff, 0.3, 0.1); te.draw();//method 2 GL11.glDisable(GL11.GL_BLEND); and it's transparent ingame but the problem is that you can see through the tileentity: Thanks in advance enbecko
-
[1.7.10]Custom EntityItem
Hey guys, I am trying to make a Custom EntityItem, which, when spawned, does not rotate nor have gravity. The EntityCustomItem looks like this: public class EntityCustomItem extends EntityItem { public EntityCustomItem(World par1World, double par2, double par4, double par6, ItemStack par8ItemStack) { super(par1World, par2, par4, par6, par8ItemStack); } protected void entityInit() { this.getDataWatcher().addObjectByDataType(10, 5); } public void onUpdate() { } public void onCollideWithPlayer(EntityPlayer par1EntityPlayer) { } } The problem is, that the serverside spawned Item behaves like the normal one and the clientside only flickers. This happens, when the Entity is not registered to Forge When it's registered, i get this error, when the Entity is spawned: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.7.0_25] at java.lang.Class.getConstructor(Unknown Source) ~[?:1.7.0_25] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) [EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) [EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) [EntitySpawnHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [simpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1650) [Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:912) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [10:27:08] [Client thread/ERROR]: EntitySpawnHandler exception java.lang.RuntimeException: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1650) [Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:912) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.7.0_25] at java.lang.Class.getConstructor(Unknown Source) ~[?:1.7.0_25] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?] ... 24 more [10:27:08] [Client thread/ERROR]: OpenGuiHandler exception java.lang.RuntimeException: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1650) [Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:912) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.7.0_25] at java.lang.Class.getConstructor(Unknown Source) ~[?:1.7.0_25] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?] ... 24 more [10:27:08] [Client thread/ERROR]: HandshakeCompletionHandler exception java.lang.RuntimeException: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1650) [Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:912) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.7.0_25] at java.lang.Class.getConstructor(Unknown Source) ~[?:1.7.0_25] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?] ... 24 more [10:27:08] [Client thread/ERROR]: There was a critical exception handling a packet on channel FML java.lang.RuntimeException: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1650) [Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:912) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NoSuchMethodException: com.fertilisNatura.fertilisNatura.EntityCustomItem.<init>(net.minecraft.world.World) at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.7.0_25] at java.lang.Class.getConstructor(Unknown Source) ~[?:1.7.0_25] at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?] Hoping for help enbecko
-
[1.7.2] Releasing mod
Hey guys, I have a finished mod and i want to recompile it with the "gradlew build" command, but i get this error: * What went wrong: A problem occurred configuring root project 'Forge'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve net.minecraftforge.gradle:ForgeGradle:1.1-SNAPSHOT. Required by: :Forge:unspecified > Unable to load Maven meta-data from http://repo1.maven.org/maven2/net/mi necraftforge/gradle/ForgeGradle/1.1-SNAPSHOT/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/net/minecraftforge/gradl e/ForgeGradle/1.1-SNAPSHOT/maven-metadata.xml'. > repo1.maven.org > Unable to load Maven meta-data from http://files.minecraftforge.net/mave n/net/minecraftforge/gradle/ForgeGradle/1.1-SNAPSHOT/maven-metadata.xml. > Could not GET 'http://files.minecraftforge.net/maven/net/minecraftfor ge/gradle/ForgeGradle/1.1-SNAPSHOT/maven-metadata.xml'. > files.minecraftforge.net > Unable to load Maven meta-data from https://oss.sonatype.org/content/rep ositories/snapshots/net/minecraftforge/gradle/ForgeGradle/1.1-SNAPSHOT/maven-met adata.xml. > Could not GET 'https://oss.sonatype.org/content/repositories/snapshot s/net/minecraftforge/gradle/ForgeGradle/1.1-SNAPSHOT/maven-metadata.xml'. > oss.sonatype.org
-
[1.7.2]Problem with writeNBT
Well I have an TileEntity that refreshs up to a certain point and then it places a block on its position. I can see the newly placed Block but it does not have the functions, it should have. I printed ot the world of the placed block and it only has the client one, so there must be a way to synchronize that.
-
[1.7.2]Problem with writeNBT
And how do I synchronize normal Blocks with the server?
-
[1.7.2]Changing Blocks texture
Hello guys, I have a block that should change it's texture when a given variable changes to 0. Is there a method that updates the Block's texture constantly? And I have another question: world.setBlock(x, y+i, z, Blocks.leaves2 , 2, 0); How can i place the different leavetypes with this.. I only get one. enbecko
-
[1.7.2]Problem with writeNBT
How do i do that?
-
[1.7.2]Problem with writeNBT
Yes there is one serverside and one clientside but only he Server one updates
-
[1.7.2]Problem with writeNBT
I should have been more detailed. I have a tileentity with a gui. When i put an item in a slot from the tileentity it gives a certain temperature. That works fine but when i close the game and reopen it, one instance of the tileentity seems to have the item in it as needed and updates the temperature correctly, but the other instance just updates when i open the gui.
-
[1.7.2]Problem with writeNBT
Now it seems like when the game is closed and the map is then reloaded, the game seems to Register a tileentity WITH and one WITHOUT the items inside.
-
[1.7.2]Problem with writeNBT
Hello guys, my writeToNBT method in the TileEntity EntityHeater throws this Exception: java.lang.RuntimeException: class com.alotfood.alotfood.entitys.EntityHeater is missing a mapping! This is a bug! at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:100) ~[TileEntity.class:?] at com.alotfood.alotfood.entitys.EntityHeater.writeToNBT(EntityHeater.java:252) ~[EntityHeater.class:?] at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:323) [AnvilChunkLoader.class:?] at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:132) [AnvilChunkLoader.class:?] at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:229) [ChunkProviderServer.class:?] at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:281) [ChunkProviderServer.class:?] at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:875) [WorldServer.class:?] at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:113) [integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:746) [MinecraftServer$2.class:?] The writeToNBT method: @Override public void writeToNBT(NBTTagCompound tagCompound2) { super.writeToNBT(tagCompound2); System.out.println("aha"); NBTTagList itemList = new NBTTagList(); for (int i = 0; i < inv.length; i++) { ItemStack stack = inv[i]; if (stack != null) { NBTTagCompound tag = new NBTTagCompound(); tag.setByte("Slot", (byte) i); stack.writeToNBT(tag); System.out.println("aha"); itemList.appendTag(tag); } } tagCompound2.setTag("Heater", itemList); } I dont know what causes the Exception beacause I used a similar writen method in another TileEntity Hope you can help me enbecko
-
Disable Inserting Items in Slot from GuiContainer
Hello guys, I am making a mod with a custom Gui. The only problem I have, is disabling that a Item can be put in a Slot like in a furnace. It should be like the result Slot from the furnace. Hope you know what I mean. enbecko
IPS spam blocked by CleanTalk.