Jump to content

Bashula

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by Bashula

  1. I had to reinstall minecraft forge to 1.7.2 and I installed this but before I could code there is an error and minecraft has no icon it has the generic java icon and there is a problem with the sounds I've had this error before in 1.6.4 but they have changed forge with gradle and so I couldn't fix it.

     

    [16:48:49] [Client thread/ERROR]: Couldn't set icon

    javax.imageio.IIOException: Can't read input file!

    at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_71]

    at net.minecraft.client.Minecraft.readImage(Minecraft.java:629) ~[Minecraft.class:?]

    at net.minecraft.client.Minecraft.startGame(Minecraft.java:458) [Minecraft.class:?]

    at net.minecraft.client.Minecraft.run(Minecraft.java:880) [Minecraft.class:?]

    at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

    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:?]

     

        sound errors

     

     

    [16:49:02] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu

    [16:49:10] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu

    [16:49:16] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu

     

  2. Heres the hole class i dont know why it dont work

     

     

    public class GuiHandler implements IGuiHandler {

    public GuiHandler() {

    NetworkRegistry.instance().registerGuiHandler(MainRegistry.instance, this);

    }

     

    @Override

    public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

    TileEntity entity = world.getBlockTileEntity(x, y, z);

     

    if(entity != null){

    switch (id) {

                  case MainRegistry.guiIdMacerator:

                      if (entity instanceof TileEntityMacerator) {

                        return new ContainerMacerator(player.inventory, (TileEntityMacerator) entity);

                      }

                        break;

     

                     

                  case MainRegistry.guiIdDarkIronFurance:

                      if (entity instanceof TileEntityDarkIronFurnace) {

                          return new DarkIronFurnaceContainer(player.inventory, (TileEntityDarkIronFurnace) entity);

                      }

                      break;

                  }

     

                }

           

    return null;

    }

     

     

     

     

    @Override

    public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

    TileEntity entity = world.getBlockTileEntity(x, y, z);

     

    if(entity != null){

    switch (id) {

                  case MainRegistry.guiIdMacerator:

                      if (entity instanceof TileEntityMacerator) {

                        return new ContainerMacerator(player.inventory, (TileEntityMacerator) entity);

                      }

                        break;

                   

                     

                  case MainRegistry.guiIdDarkIronFurance:

                      if (entity instanceof TileEntityDarkIronFurnace) {

                          return new DarkIronFurnaceContainer(player.inventory, (TileEntityDarkIronFurnace) entity);

                      }

                      break;

                  }

  3. public class GuiMacerator extends GuiContainer{

    public static final ResourceLocation texture = new ResourceLocation(Strings.MOD_ID, "textures/gui/macerator.png");

     

    public TileEntityMacerator macerator;

     

    public GuiMacerator(InventoryPlayer invPlayer, TileEntityMacerator entity) {

    super(new ContainerMacerator(invPlayer, entity));

     

    this.macerator = entity;

     

    this.xSize = 176;

    this.ySize = 165;

    }

     

    public void drawGuiContainerForegroundLayer(int par1, int par2){

    String s = this.macerator.isInvNameLocalized() ? this.macerator.getInvName() : I18n.getString(this.macerator.getInvName());

    this.fontRenderer.drawString(s, this.xSize / 2 - this.fontRenderer.getStringWidth(s) / 2, 6, 4210752);

    this.fontRenderer.drawString(I18n.getString("container.inventory"), 8, this.ySize - 96 + 5, 4210752);

    }

     

    public void drawGuiContainerBackgroundLayer(float f, int j, int i) {

    GL11.glColor4f(1F, 1F, 1F, 1F);

     

    Minecraft.getMinecraft().getTextureManager().

    bindTexture(texture);

     

    drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);

     

    int i1;

     

    if(this.macerator.hasPower()){

    i1 = this.macerator.getPowerRemainingScaled(45);

    this.drawTexturedModalRect(guiLeft + 8, guiTop + 53 - i1, 176, 62 - i1, 16, i1);

    }

     

    i1 = this.macerator.getCookProgressScaled(24);

    this.drawTexturedModalRect(guiLeft + 79, guiTop + 34, 176, 0, i1 + 1, 16);

    }

    }

  4. new crash

     

      net.minecraft.util.ReportedException: Exception in world tick

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1946)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:838)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.main.Main.main(Main.java:93)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

    2014-01-04 03:56:20 [iNFO] [sTDERR] Caused by: java.lang.ClassCastException: Darkcraft.Furnace.Macerator.ContainerMacerator cannot be cast to net.minecraft.client.gui.GuiScreen

    2014-01-04 03:56:20 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:397)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:334)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:357)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at cpw.mods.fml.common.network.OpenGuiPacket.execute(OpenGuiPacket.java:67)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:116)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:81)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.multiplayer.NetClientHandler.handleCustomPayload(NetClientHandler.java:1651)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.network.packet.Packet250CustomPayload.processPacket(Packet250CustomPayload.java:70)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:99)

    2014-01-04 03:56:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1930)

    2014-01-04 03:56:20 [iNFO] [sTDERR] ... 9 more

    2014-01-04 03:56:20 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----

    2014-01-04 03:56:20 [iNFO] [sTDOUT] // Don't be sad, have a hug! <3

    2014-01-04 03:56:20 [iNFO] [sTDOUT]

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Time: 1/4/14 3:56 AM

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Description: Exception in world tick

    2014-01-04 03:56:20 [iNFO] [sTDOUT]

    2014-01-04 03:56:20 [iNFO] [sTDOUT] java.lang.ClassCastException: Darkcraft.Furnace.Macerator.ContainerMacerator cannot be cast to net.minecraft.client.gui.GuiScreen

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:397)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:334)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:357)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.OpenGuiPacket.execute(OpenGuiPacket.java:67)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:116)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:81)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.handleCustomPayload(NetClientHandler.java:1651)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.network.packet.Packet250CustomPayload.processPacket(Packet250CustomPayload.java:70)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:99)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1930)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

    2014-01-04 03:56:20 [iNFO] [sTDOUT]

    2014-01-04 03:56:20 [iNFO] [sTDOUT]

    2014-01-04 03:56:20 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:

    2014-01-04 03:56:20 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------

    2014-01-04 03:56:20 [iNFO] [sTDOUT]

    2014-01-04 03:56:20 [iNFO] [sTDOUT] -- Head --

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Stacktrace:

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:397)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:334)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:357)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.OpenGuiPacket.execute(OpenGuiPacket.java:67)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:116)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:81)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.handleCustomPayload(NetClientHandler.java:1651)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.network.packet.Packet250CustomPayload.processPacket(Packet250CustomPayload.java:70)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

    2014-01-04 03:56:20 [iNFO] [sTDOUT]

    2014-01-04 03:56:20 [iNFO] [sTDOUT] -- Affected level --

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Details:

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level name: MpServer

    2014-01-04 03:56:20 [iNFO] [sTDOUT] All players: 1 total; [EntityClientPlayerMP['Bashula'/173, l='MpServer', x=-10.74, y=64.62, z=60.99]]

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Chunk stats: MultiplayerChunkCache: 405

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level seed: 0

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level generator: ID 00 - default, ver 1. Features enabled: false

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level generator options:

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level spawn location: World: (-8,64,68), Chunk: (at 8,4,4 in -1,4; contains blocks -16,0,64 to -1,255,79), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level time: 11946 game time, 11946 day time

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level dimension: 0

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level storage version: 0x00000 - Unknown?

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Forced entities: 89 total; [EntityBat['Bat'/137, l='MpServer', x=45.82, y=36.26, z=110.14], EntityBat['Bat'/136, l='MpServer', x=42.47, y=33.27, z=108.48], EntityBat['Bat'/138, l='MpServer', x=43.40, y=37.44, z=112.37], EntityZombie['Zombie'/143, l='MpServer', x=52.70, y=29.00, z=100.30], EntityBat['Bat'/142, l='MpServer', x=44.50, y=25.10, z=50.57], EntityCreeper['Creeper'/129, l='MpServer', x=32.50, y=23.10, z=39.30], EntitySkeleton['Skeleton'/128, l='MpServer', x=32.28, y=17.00, z=-15.78], EntityCreeper['Creeper'/131, l='MpServer', x=41.78, y=34.00, z=47.25], EntityCreeper['Creeper'/130, l='MpServer', x=41.94, y=34.00, z=46.38], EntityCreeper['Creeper'/133, l='MpServer', x=40.79, y=25.00, z=46.37], EntityCreeper['Creeper'/132, l='MpServer', x=43.00, y=25.00, z=49.69], EntitySkeleton['Skeleton'/135, l='MpServer', x=46.53, y=35.00, z=111.69], EntityBat['Bat'/134, l='MpServer', x=46.50, y=33.10, z=103.25], EntitySheep['Sheep'/33, l='MpServer', x=-81.50, y=76.00, z=36.37], EntityBat['Bat'/38, l='MpServer', x=-85.53, y=45.95, z=-15.84], EntitySheep['Sheep'/39, l='MpServer', x=-76.13, y=69.00, z=41.50], EntityClientPlayerMP['Bashula'/173, l='MpServer', x=-10.74, y=64.62, z=60.99], EntityEnderman['Enderman'/36, l='MpServer', x=-69.69, y=44.00, z=-12.75], EntityEnderman['Enderman'/37, l='MpServer', x=-65.49, y=44.00, z=-8.03], EntitySheep['Sheep'/42, l='MpServer', x=-51.16, y=79.00, z=26.66], EntitySheep['Sheep'/43, l='MpServer', x=-55.54, y=78.00, z=22.04], EntitySkeleton['Skeleton'/40, l='MpServer', x=-75.50, y=30.00, z=60.09], EntityBat['Bat'/41, l='MpServer', x=-64.44, y=32.10, z=52.53], EntitySkeleton['Skeleton'/46, l='MpServer', x=-55.28, y=22.00, z=75.78], EntityCreeper['Creeper'/47, l='MpServer', x=-50.88, y=22.00, z=74.78], EntitySkeleton['Skeleton'/44, l='MpServer', x=-61.28, y=22.00, z=75.66], EntityZombie['Zombie'/45, l='MpServer', x=-59.50, y=22.00, z=74.31], EntityCreeper['Creeper'/51, l='MpServer', x=-49.63, y=17.00, z=88.59], EntitySpider['Spider'/50, l='MpServer', x=-53.91, y=12.00, z=94.09], EntitySkeleton['Skeleton'/49, l='MpServer', x=-54.38, y=12.00, z=89.25], EntitySpider['Spider'/48, l='MpServer', x=-50.13, y=21.00, z=76.59], EntitySheep['Sheep'/55, l='MpServer', x=-43.66, y=75.00, z=29.44], EntityZombie['Zombie'/53, l='MpServer', x=-49.30, y=11.14, z=97.88], EntityZombie['Zombie'/52, l='MpServer', x=-52.70, y=11.11, z=96.70], EntityZombie['Zombie'/59, l='MpServer', x=-41.50, y=11.00, z=52.25], EntitySheep['Sheep'/58, l='MpServer', x=-39.31, y=67.00, z=29.31], EntitySheep['Sheep'/57, l='MpServer', x=-43.63, y=74.71, z=21.47], EntitySheep['Sheep'/56, l='MpServer', x=-37.66, y=67.00, z=27.53], EntitySquid['Squid'/63, l='MpServer', x=-35.52, y=46.37, z=82.46], EntityZombie['Zombie'/62, l='MpServer', x=-45.78, y=21.00, z=80.72], EntitySquid['Squid'/61, l='MpServer', x=-37.63, y=45.37, z=68.60], EntitySquid['Squid'/60, l='MpServer', x=-40.42, y=45.00, z=67.47], EntityCreeper['Creeper'/68, l='MpServer', x=-33.53, y=14.00, z=109.97], EntityZombie['Zombie'/64, l='MpServer', x=-39.75, y=11.00, z=104.78], EntitySkeleton['Skeleton'/65, l='MpServer', x=-39.59, y=11.88, z=101.50], EntityZombie['Zombie'/66, l='MpServer', x=-32.50, y=15.00, z=101.09], EntityZombie['Zombie'/67, l='MpServer', x=-32.66, y=15.00, z=102.16], EntityCreeper['Creeper'/76, l='MpServer', x=-29.69, y=15.00, z=54.30], EntityZombie['Zombie'/77, l='MpServer', x=-27.50, y=15.00, z=55.44], EntityCreeper['Creeper'/78, l='MpServer', x=-28.50, y=15.00, z=54.31], EntitySkeleton['Skeleton'/79, l='MpServer', x=-29.30, y=15.00, z=60.70], EntitySheep['Sheep'/72, l='MpServer', x=-18.56, y=65.00, z=6.88], EntitySheep['Sheep'/73, l='MpServer', x=-27.66, y=75.00, z=14.53], EntitySheep['Sheep'/74, l='MpServer', x=-25.97, y=69.00, z=25.03], EntitySheep['Sheep'/75, l='MpServer', x=-28.47, y=64.00, z=34.00], EntityZombie['Zombie'/85, l='MpServer', x=-28.31, y=15.00, z=101.03], EntitySquid['Squid'/84, l='MpServer', x=-32.53, y=45.39, z=67.52], EntitySkeleton['Skeleton'/87, l='MpServer', x=-29.02, y=15.00, z=105.56], EntitySkeleton['Skeleton'/86, l='MpServer', x=-30.47, y=14.00, z=110.69], EntityBat['Bat'/81, l='MpServer', x=-29.34, y=17.10, z=55.25], EntityZombie['Zombie'/80, l='MpServer', x=-28.47, y=17.00, z=49.97], EntitySquid['Squid'/83, l='MpServer', x=-23.53, y=46.00, z=76.53], EntityCreeper['Creeper'/82, l='MpServer', x=-29.63, y=16.00, z=53.28], EntitySkeleton['Skeleton'/95, l='MpServer', x=10.50, y=34.00, z=3.50], EntitySkeleton['Skeleton'/94, l='MpServer', x=6.50, y=34.00, z=-5.50], EntityBat['Bat'/88, l='MpServer', x=-32.73, y=15.60, z=111.11], EntitySquid['Squid'/100, l='MpServer', x=0.95, y=55.34, z=90.64], EntityBat['Bat'/98, l='MpServer', x=7.72, y=25.10, z=56.94], EntityBat['Bat'/99, l='MpServer', x=1.36, y=24.33, z=60.50], EntitySkeleton['Skeleton'/96, l='MpServer', x=13.50, y=34.00, z=10.50], EntityBat['Bat'/97, l='MpServer', x=8.91, y=25.10, z=54.66], EntityCreeper['Creeper'/110, l='MpServer', x=25.22, y=23.00, z=32.50], EntityBat['Bat'/111, l='MpServer', x=31.75, y=29.10, z=38.41], EntityZombie['Zombie'/108, l='MpServer', x=25.50, y=14.00, z=-6.16], EntityEnderman['Enderman'/109, l='MpServer', x=16.28, y=22.00, z=21.88], EntityZombie['Zombie'/106, l='MpServer', x=26.69, y=13.00, z=-6.31], EntityCreeper['Creeper'/107, l='MpServer', x=26.31, y=15.00, z=-3.31], EntityZombie['Zombie'/104, l='MpServer', x=31.91, y=17.00, z=-16.59], EntitySkeleton['Skeleton'/105, l='MpServer', x=25.84, y=13.00, z=-7.22], EntityZombie['Zombie'/116, l='MpServer', x=17.31, y=38.00, z=132.34], EntityZombie['Zombie'/115, l='MpServer', x=16.59, y=38.00, z=130.91], EntityZombie['Zombie'/114, l='MpServer', x=17.31, y=38.00, z=133.28], EntityZombie['Zombie'/113, l='MpServer', x=18.16, y=38.00, z=132.91], EntityBat['Bat'/112, l='MpServer', x=39.68, y=25.09, z=44.66], EntityZombie['Zombie'/127, l='MpServer', x=35.91, y=16.00, z=-11.88], EntityCreeper['Creeper'/126, l='MpServer', x=36.69, y=16.00, z=-12.69], EntityZombie['Zombie'/125, l='MpServer', x=35.50, y=15.00, z=-7.44], EntityCreeper['Creeper'/124, l='MpServer', x=35.50, y=15.00, z=-6.59], EntityZombie['Zombie'/123, l='MpServer', x=28.53, y=15.73, z=-4.65]]

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Retry entities: 0 total; []

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Server brand: fml,forge

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Server type: Integrated singleplayer server

    2014-01-04 03:56:20 [iNFO] [sTDOUT] Stacktrace:

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1943)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

    2014-01-04 03:56:20 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

    2014-01-04 03:56:20 [iNFO] [sTDOUT]

  5. Time: 1/4/14 3:39 AM

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Description: Exception in world tick

    2014-01-04 03:39:11 [iNFO] [sTDOUT]

    2014-01-04 03:39:11 [iNFO] [sTDOUT] java.lang.ClassCastException: Darkcraft.Furnace.DarkIronFurnaceContainer cannot be cast to net.minecraft.client.gui.GuiScreen

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:397)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:334)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:357)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.OpenGuiPacket.execute(OpenGuiPacket.java:67)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:116)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:81)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.handleCustomPayload(NetClientHandler.java:1651)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.network.packet.Packet250CustomPayload.processPacket(Packet250CustomPayload.java:70)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:99)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1930)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

    2014-01-04 03:39:11 [iNFO] [sTDOUT]

    2014-01-04 03:39:11 [iNFO] [sTDOUT]

    2014-01-04 03:39:11 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:

    2014-01-04 03:39:11 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------

    2014-01-04 03:39:11 [iNFO] [sTDOUT]

    2014-01-04 03:39:11 [iNFO] [sTDOUT] -- Head --

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Stacktrace:

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:397)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:334)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:357)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.OpenGuiPacket.execute(OpenGuiPacket.java:67)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:116)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:81)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.handleCustomPayload(NetClientHandler.java:1651)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.network.packet.Packet250CustomPayload.processPacket(Packet250CustomPayload.java:70)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

    2014-01-04 03:39:11 [iNFO] [sTDOUT]

    2014-01-04 03:39:11 [iNFO] [sTDOUT] -- Affected level --

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Details:

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level name: MpServer

    2014-01-04 03:39:11 [iNFO] [sTDOUT] All players: 1 total; [EntityClientPlayerMP['Bashula'/173, l='MpServer', x=-10.74, y=64.62, z=60.99]]

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Chunk stats: MultiplayerChunkCache: 441

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level seed: 0

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level generator: ID 00 - default, ver 1. Features enabled: false

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level generator options:

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level spawn location: World: (-8,64,68), Chunk: (at 8,4,4 in -1,4; contains blocks -16,0,64 to -1,255,79), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level time: 11851 game time, 11851 day time

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level dimension: 0

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level storage version: 0x00000 - Unknown?

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Forced entities: 88 total; [EntityZombie['Zombie'/137, l='MpServer', x=49.24, y=29.29, z=100.68], EntityBat['Bat'/136, l='MpServer', x=43.54, y=35.16, z=108.55], EntitySkeleton['Skeleton'/139, l='MpServer', x=46.71, y=34.57, z=110.62], EntityBat['Bat'/138, l='MpServer', x=46.50, y=33.10, z=103.25], EntityBat['Bat'/141, l='MpServer', x=44.55, y=34.69, z=108.85], EntityBat['Bat'/140, l='MpServer', x=43.92, y=39.64, z=115.60], EntityBat['Bat'/143, l='MpServer', x=49.44, y=26.64, z=51.40], EntityCreeper['Creeper'/129, l='MpServer', x=36.69, y=16.00, z=-12.69], EntityZombie['Zombie'/128, l='MpServer', x=35.50, y=15.00, z=-6.81], EntityCreeper['Creeper'/131, l='MpServer', x=32.50, y=23.08, z=39.30], EntityZombie['Zombie'/130, l='MpServer', x=35.91, y=16.00, z=-11.88], EntityCreeper['Creeper'/133, l='MpServer', x=41.78, y=34.00, z=47.25], EntityCreeper['Creeper'/132, l='MpServer', x=41.94, y=34.00, z=46.38], EntityCreeper['Creeper'/135, l='MpServer', x=43.50, y=25.00, z=48.78], EntityCreeper['Creeper'/134, l='MpServer', x=43.00, y=25.00, z=49.69], EntitySheep['Sheep'/33, l='MpServer', x=-82.44, y=76.00, z=35.72], EntitySheep['Sheep'/38, l='MpServer', x=-76.13, y=69.00, z=41.50], EntitySkeleton['Skeleton'/39, l='MpServer', x=-75.50, y=30.00, z=60.09], EntityClientPlayerMP['Bashula'/173, l='MpServer', x=-10.74, y=64.62, z=60.99], EntityEnderman['Enderman'/36, l='MpServer', x=-66.44, y=44.00, z=-12.47], EntityBat['Bat'/37, l='MpServer', x=-76.17, y=47.79, z=-13.84], EntitySheep['Sheep'/42, l='MpServer', x=-51.16, y=79.00, z=26.66], EntitySheep['Sheep'/43, l='MpServer', x=-56.88, y=78.00, z=21.97], EntityBat['Bat'/40, l='MpServer', x=-64.44, y=32.10, z=52.53], EntityEnderman['Enderman'/41, l='MpServer', x=-63.69, y=45.00, z=-7.25], EntitySkeleton['Skeleton'/46, l='MpServer', x=-55.53, y=22.00, z=75.91], EntityCreeper['Creeper'/47, l='MpServer', x=-50.88, y=22.00, z=74.78], EntitySkeleton['Skeleton'/44, l='MpServer', x=-56.53, y=22.00, z=76.09], EntityZombie['Zombie'/45, l='MpServer', x=-61.30, y=22.00, z=74.46], EntityCreeper['Creeper'/51, l='MpServer', x=-49.63, y=17.00, z=88.59], EntitySpider['Spider'/50, l='MpServer', x=-53.91, y=12.00, z=94.09], EntitySkeleton['Skeleton'/49, l='MpServer', x=-54.30, y=12.25, z=89.04], EntitySpider['Spider'/48, l='MpServer', x=-49.54, y=21.92, z=76.89], EntitySheep['Sheep'/55, l='MpServer', x=-43.66, y=75.00, z=29.44], EntityZombie['Zombie'/53, l='MpServer', x=-49.31, y=11.00, z=98.57], EntityZombie['Zombie'/52, l='MpServer', x=-52.70, y=11.85, z=96.70], EntityZombie['Zombie'/59, l='MpServer', x=-41.50, y=11.00, z=52.25], EntitySheep['Sheep'/58, l='MpServer', x=-39.46, y=68.00, z=27.99], EntitySheep['Sheep'/57, l='MpServer', x=-43.06, y=74.00, z=21.63], EntitySheep['Sheep'/56, l='MpServer', x=-37.66, y=67.00, z=27.53], EntityZombie['Zombie'/63, l='MpServer', x=-39.75, y=11.00, z=104.78], EntitySquid['Squid'/62, l='MpServer', x=-33.50, y=46.38, z=85.50], EntityZombie['Zombie'/61, l='MpServer', x=-45.78, y=21.00, z=80.72], EntitySquid['Squid'/60, l='MpServer', x=-40.53, y=45.00, z=67.47], EntitySheep['Sheep'/71, l='MpServer', x=-18.56, y=65.00, z=6.88], EntitySkeleton['Skeleton'/64, l='MpServer', x=-41.13, y=11.00, z=101.50], EntityZombie['Zombie'/65, l='MpServer', x=-32.50, y=15.00, z=101.09], EntityZombie['Zombie'/66, l='MpServer', x=-32.66, y=15.00, z=102.16], EntityCreeper['Creeper'/67, l='MpServer', x=-33.53, y=14.00, z=109.97], EntityZombie['Zombie'/76, l='MpServer', x=-27.50, y=15.00, z=55.44], EntityCreeper['Creeper'/77, l='MpServer', x=-28.50, y=15.00, z=54.31], EntitySkeleton['Skeleton'/78, l='MpServer', x=-29.30, y=15.00, z=60.70], EntityZombie['Zombie'/79, l='MpServer', x=-28.47, y=17.00, z=49.97], EntitySheep['Sheep'/72, l='MpServer', x=-27.63, y=75.00, z=14.53], EntitySheep['Sheep'/73, l='MpServer', x=-25.97, y=69.00, z=25.03], EntitySheep['Sheep'/74, l='MpServer', x=-25.59, y=64.00, z=31.47], EntityCreeper['Creeper'/75, l='MpServer', x=-29.69, y=15.00, z=54.30], EntityZombie['Zombie'/85, l='MpServer', x=-28.31, y=15.00, z=101.03], EntitySquid['Squid'/84, l='MpServer', x=-32.78, y=45.00, z=69.53], EntitySkeleton['Skeleton'/87, l='MpServer', x=-30.66, y=14.00, z=109.69], EntitySkeleton['Skeleton'/86, l='MpServer', x=-30.47, y=14.00, z=110.69], EntityCreeper['Creeper'/81, l='MpServer', x=-29.63, y=16.00, z=53.28], EntityBat['Bat'/80, l='MpServer', x=-29.34, y=17.10, z=55.25], EntitySquid['Squid'/83, l='MpServer', x=-31.84, y=45.40, z=67.38], EntitySquid['Squid'/82, l='MpServer', x=-23.48, y=46.38, z=75.05], EntitySkeleton['Skeleton'/95, l='MpServer', x=10.50, y=34.00, z=3.50], EntitySkeleton['Skeleton'/94, l='MpServer', x=6.50, y=34.00, z=-5.50], EntityBat['Bat'/88, l='MpServer', x=-30.30, y=14.75, z=107.08], EntitySquid['Squid'/100, l='MpServer', x=3.00, y=55.55, z=91.72], EntityBat['Bat'/98, l='MpServer', x=7.72, y=25.10, z=56.94], EntityBat['Bat'/99, l='MpServer', x=5.78, y=24.66, z=58.02], EntitySkeleton['Skeleton'/96, l='MpServer', x=13.50, y=34.00, z=10.50], EntityBat['Bat'/97, l='MpServer', x=8.91, y=25.10, z=54.66], EntityBat['Bat'/110, l='MpServer', x=31.75, y=29.10, z=38.41], EntityBat['Bat'/111, l='MpServer', x=31.28, y=24.00, z=39.30], EntityEnderman['Enderman'/108, l='MpServer', x=17.41, y=24.00, z=22.00], EntityCreeper['Creeper'/109, l='MpServer', x=25.73, y=22.00, z=32.52], EntityCreeper['Creeper'/106, l='MpServer', x=26.31, y=15.00, z=-3.31], EntityZombie['Zombie'/107, l='MpServer', x=25.50, y=14.00, z=-6.16], EntitySkeleton['Skeleton'/104, l='MpServer', x=25.29, y=13.00, z=-7.92], EntityZombie['Zombie'/105, l='MpServer', x=26.70, y=13.00, z=-6.30], EntityZombie['Zombie'/115, l='MpServer', x=17.30, y=38.00, z=133.26], EntityZombie['Zombie'/114, l='MpServer', x=16.59, y=38.00, z=130.91], EntityZombie['Zombie'/113, l='MpServer', x=18.18, y=37.03, z=133.98], EntityZombie['Zombie'/112, l='MpServer', x=17.94, y=38.00, z=132.27], EntityCreeper['Creeper'/127, l='MpServer', x=35.50, y=15.00, z=-5.99], EntityZombie['Zombie'/126, l='MpServer', x=34.67, y=15.00, z=-3.82], EntityZombie['Zombie'/124, l='MpServer', x=31.91, y=17.00, z=-16.59]]

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Retry entities: 0 total; []

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Server brand: fml,forge

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Server type: Integrated singleplayer server

    2014-01-04 03:39:11 [iNFO] [sTDOUT] Stacktrace:

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1943)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

    2014-01-04 03:39:11 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

  6. like this

     

    public class GuiHandler implements IGuiHandler {

    public GuiHandler() {

    NetworkRegistry.instance().registerGuiHandler(MainRegistry.instance, this);

    }

     

    @Override

    public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

    TileEntity entity = world.getBlockTileEntity(x, y, z);

     

    if(entity != null){

    switch (id) {

    case MainRegistry.guiIdMacerator:

    if (entity instanceof TileEntityMacerator) {

    return new ContainerMacerator(player.inventory, (TileEntityMacerator) entity);}

     

    case MainRegistry.guiIdDarkIronFurance:

    if (entity instanceof TileEntityDarkIronFurnace) {

    return new DarkIronFurnaceContainer(player.inventory, (TileEntityDarkIronFurnace) entity);

    }

     

    return null;

    default:

    return null;

    }

    }

     

    return null;

    }

     

    @Override

    public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

    TileEntity entity = world.getBlockTileEntity(x, y, z);

     

    if(entity != null){

    switch (id) {

    case MainRegistry.guiIdMacerator:

    if (entity instanceof TileEntityMacerator) {

    return new GuiMacerator(player.inventory, (TileEntityMacerator) entity);}

     

    case MainRegistry.guiIdDarkIronFurance:

    if (entity instanceof TileEntityDarkIronFurnace) {

    return new DarkIronFurnaceContainer(player.inventory, (TileEntityDarkIronFurnace) entity);

    }

     

     

    return null;

    default:

    return null;

    }

    }

     

    return null;

    }

     

    }

     

  7. im doing it by the gui id but i dont see how to do it heres the gui handler 

     

     

    public class GuiHandlerFurnace implements IGuiHandler {

    public GuiHandlerFurnace() {

    NetworkRegistry.instance().registerGuiHandler(Strings.instance, this);

    }

     

    @Override

    public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

    TileEntity entity = world.getBlockTileEntity(x, y, z);

     

    if(entity != null){

    switch (id) {

    case MainRegistry.guiIdDarkIronFurance:

    if (entity instanceof TileEntityDarkIronFurnace) {

    return new DarkIronFurnaceContainer(player.inventory, (TileEntityDarkIronFurnace) entity);

    }

     

    }

    }

     

    return null;

    }

     

    @Override

    public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

    TileEntity entity = world.getBlockTileEntity(x, y, z);

     

    if(entity != null){

    switch (id) {

    case MainRegistry.guiIdDarkIronFurance:

    if (entity instanceof TileEntityDarkIronFurnace) {

    return new GUIDarkIronFurnace(player.inventory, (TileEntityDarkIronFurnace) entity);

    }

     

    }

    }

     

    return null;

    }

    }

     

  8. Hello i have a problem i have to GuiHandlers and when i register them they cancel one of them out which ones first in the code because i have a Macerator and a Furance  Here`s the registry.

     

                        NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler());

                    NetworkRegistry.instance().registerGuiHandler(this, new GuiHandlerFurnace());

     

     

                                                                                                                                                                                  Bryan

     

  9. public class GuiHandlerDIFurnace implements IGuiHandler

    {

    @Override

    public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z)

    {

    TileEntity tile_entity = world.getBlockTileEntity(x, y, z);

    switch(id)

    {

    case 0: return new DarkIronFurnaceContainer(player.inventory, (TileEntityDarkIronFurnace) tile_entity);

    }

    return null;

    }

    @Override

    public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z)

    {

    TileEntity tile_entity = world.getBlockTileEntity(x, y, z);

    switch(id)

    {

    case 0: return new GUIDarkIronFurnace(player.inventory, (TileEntityDarkIronFurnace) tile_entity);

    }

    return null;

    }

    }

  10. this is the strings class i worked before the update

     

    public class Strings

    {   

    protected boolean enableStats = true;

     

     

     

     

        public static final String MOD_ID = "Darkcraft";

        public static final String Name = "Darkcraft-1.6.4 Beta-Dev";

        public static final String Version = "1.6.3 Beta-Dev";

     

        public static final String ServerProxylocation = "Darkcraft.main.ServerProxy";

        public static final String ClientProxylocation = "Darkcraft.main.ClientProxy";

    public static String get(String string) {

    // TODO Auto-generated method stub

    return null;

    }

        public boolean getEnableStats()

        {

            return this.enableStats;

        }

     

        /**

        *

        * Disable statistics for the block, the block will no count for mined or placed.

        *

        */

     

        protected Strings disableStats()

        {

            this.enableStats = false;

            return this;

        }

     

    @Instance("Darkcraft")

      public static MainRegistry instance;

     

    }

     

     

     

  11. I used Microjunks code for this part becouse i could not fix the error for it here it is

     

     

     

        public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)

        {

            if (par1World.isRemote)

            {

                return true;

            }

            else if (!par5EntityPlayer.isSneaking())

            {

                TileEntityDarkIronFurnace var10 = (TileEntityDarkIronFurnace) par1World.getBlockTileEntity(par2, par3, par4);

                if (var10 != null)

                {

                  par5EntityPlayer.openGui(Strings.instance, 0, par1World, par2, par3, par4);   

                }

                return true;

            }

            else

            {

                return false;

       

            }

        }

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.