Jump to content

TileEntities


ashtonr12

Recommended Posts

trying to create a furnace that has half the cook time,

this is done through tile entities as i understand tried to copy and edit the tileentity furance, wantthe block to use the new tile entity but use the normal furnace gui,

tileentity

package ashtonsmod.common;

import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.Icon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class BlockNFurnace extends BlockContainer
{
    /**
     * Is the random generator used by furnace to drop the inventory contents in random directions.
     */
    private final Random nfurnaceRand = new Random();

    /** True if this is an active furnace, false if idle */
    private final boolean isActive;

    /**
     * This flag is used to prevent the furnace inventory to be dropped upon block removal, is used internally when the
     * furnace block changes from idle to active and vice-versa.
     */
    private static boolean keepFurnaceInventory = false;
    @SideOnly(Side.CLIENT)
    private Icon field_94458_cO;
    @SideOnly(Side.CLIENT)
    private Icon field_94459_cP;

    protected BlockNFurnace(int par1, boolean par2)
    {
        super(par1, Material.rock);
        this.isActive = par2;
    }

    /**
     * Returns the ID of the items to drop on destruction.
     */
    public int idDropped(int par1, Random par2Random, int par3)
    {
        return ashtonsmod.NFurnaceIdle.blockID;
    }

    /**
     * Called whenever the block is added into the world. Args: world, x, y, z
     */
    public void onBlockAdded(World par1World, int par2, int par3, int par4)
    {
        super.onBlockAdded(par1World, par2, par3, par4);
        this.setDefaultDirection(par1World, par2, par3, par4);
    }

    /**
     * set a blocks direction
     */
    private void setDefaultDirection(World par1World, int par2, int par3, int par4)
    {
        if (!par1World.isRemote)
        {
            int l = par1World.getBlockId(par2, par3, par4 - 1);
            int i1 = par1World.getBlockId(par2, par3, par4 + 1);
            int j1 = par1World.getBlockId(par2 - 1, par3, par4);
            int k1 = par1World.getBlockId(par2 + 1, par3, par4);
            byte b0 = 3;

            if (Block.opaqueCubeLookup[l] && !Block.opaqueCubeLookup[i1])
            {
                b0 = 3;
            }

            if (Block.opaqueCubeLookup[i1] && !Block.opaqueCubeLookup[l])
            {
                b0 = 2;
            }

            if (Block.opaqueCubeLookup[j1] && !Block.opaqueCubeLookup[k1])
            {
                b0 = 5;
            }

            if (Block.opaqueCubeLookup[k1] && !Block.opaqueCubeLookup[j1])
            {
                b0 = 4;
            }

            par1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 2);
        }
    }

    @SideOnly(Side.CLIENT)

    /**
     * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
     */
    public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
    {
        return par1 == 1 ? this.field_94458_cO : (par1 == 0 ? this.field_94458_cO : (par1 != par2 ? this.blockIcon : this.field_94459_cP));
    }

    @SideOnly(Side.CLIENT)

    /**
     * When this method is called, your block should register all the icons it needs with the given IconRegister. This
     * is the only chance you get to register icons.
     */
    public void registerIcons(IconRegister par1IconRegister)
    {
        this.blockIcon = par1IconRegister.registerIcon("furnace_side");
        this.field_94459_cP = par1IconRegister.registerIcon(this.isActive ? "furnace_front_lit" : "furnace_front");
        this.field_94458_cO = par1IconRegister.registerIcon("furnace_top");
    }

    /**
     * Called upon block activation (right click on the block.)
     */
    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
        {
            TileEntityFurnace tileentityfurnace = (TileEntityFurnace)par1World.getBlockTileEntity(par2, par3, par4);
            if (tileentityfurnace != null)
            {
                par5EntityPlayer.displayGUIFurnace(tileentityfurnace);
            }

            return true;
        }
    }

    /**
     * Update which block ID the furnace is using depending on whether or not it is burning
     */
    public static void updateFurnaceBlockState(boolean par0, World par1World, int par2, int par3, int par4)
    {
        int l = par1World.getBlockMetadata(par2, par3, par4);
        TileEntity tileentity = par1World.getBlockTileEntity(par2, par3, par4);
        keepFurnaceInventory = true;

        if (par0)
        {
            par1World.setBlock(par2, par3, par4, ashtonsmod.NFurnaceBurning.blockID);
        }
        else
        {
            par1World.setBlock(par2, par3, par4, ashtonsmod.NFurnaceIdle.blockID);
        }

        keepFurnaceInventory = false;
        par1World.setBlockMetadataWithNotify(par2, par3, par4, l, 2);

        if (tileentity != null)
        {
            tileentity.validate();
            par1World.setBlockTileEntity(par2, par3, par4, tileentity);
        }
    }

    @SideOnly(Side.CLIENT)

    /**
     * A randomly called display update to be able to add particles or other items for display
     */
    public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
    {
        if (this.isActive)
        {
            int l = par1World.getBlockMetadata(par2, par3, par4);
            float f = (float)par2 + 0.5F;
            float f1 = (float)par3 + 0.0F + par5Random.nextFloat() * 6.0F / 16.0F;
            float f2 = (float)par4 + 0.5F;
            float f3 = 0.52F;
            float f4 = par5Random.nextFloat() * 0.6F - 0.3F;

            if (l == 4)
            {
                par1World.spawnParticle("smoke", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
                par1World.spawnParticle("flame", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
            }
            else if (l == 5)
            {
                par1World.spawnParticle("smoke", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
                par1World.spawnParticle("flame", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
            }
            else if (l == 2)
            {
                par1World.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D);
                par1World.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D);
            }
            else if (l == 3)
            {
                par1World.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D);
                par1World.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D);
            }
        }
    }

    /**
     * Returns a new instance of a block's tile entity class. Called on placing the block.
     */
    public TileEntity createNewTileEntity(World par1World)
    {
        return new TileEntityNFurnace();
    }

    /**
     * Called when the block is placed in the world.
     */
    public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)
    {
        int l = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;

        if (l == 0)
        {
            par1World.setBlockMetadataWithNotify(par2, par3, par4, 2, 2);
        }

        if (l == 1)
        {
            par1World.setBlockMetadataWithNotify(par2, par3, par4, 5, 2);
        }

        if (l == 2)
        {
            par1World.setBlockMetadataWithNotify(par2, par3, par4, 3, 2);
        }

        if (l == 3)
        {
            par1World.setBlockMetadataWithNotify(par2, par3, par4, 4, 2);
        }

        if (par6ItemStack.hasDisplayName())
        {
            ((TileEntityNFurnace)par1World.getBlockTileEntity(par2, par3, par4)).func_94129_a(par6ItemStack.getDisplayName());
        }
    }

    /**
     * ejects contained items into the world, and notifies neighbours of an update, as appropriate
     */
    public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
    {
        if (!keepFurnaceInventory)
        {
            TileEntityNFurnace tileentitynfurnace = (TileEntityNFurnace)par1World.getBlockTileEntity(par2, par3, par4);

            if (tileentitynfurnace != null)
            {
                for (int j1 = 0; j1 < tileentitynfurnace.getSizeInventory(); ++j1)
                {
                    ItemStack itemstack = tileentitynfurnace.getStackInSlot(j1);

                    if (itemstack != null)
                    {
                        float f = this.nfurnaceRand.nextFloat() * 0.8F + 0.1F;
                        float f1 = this.nfurnaceRand.nextFloat() * 0.8F + 0.1F;
                        float f2 = this.nfurnaceRand.nextFloat() * 0.8F + 0.1F;

                        while (itemstack.stackSize > 0)
                        {
                            int k1 = this.nfurnaceRand.nextInt(21) + 10;

                            if (k1 > itemstack.stackSize)
                            {
                                k1 = itemstack.stackSize;
                            }

                            itemstack.stackSize -= k1;
                            EntityItem entityitem = new EntityItem(par1World, (double)((float)par2 + f), (double)((float)par3 + f1), (double)((float)par4 + f2), new ItemStack(itemstack.itemID, k1, itemstack.getItemDamage()));

                            if (itemstack.hasTagCompound())
                            {
                                entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
                            }

                            float f3 = 0.05F;
                            entityitem.motionX = (double)((float)this.nfurnaceRand.nextGaussian() * f3);
                            entityitem.motionY = (double)((float)this.nfurnaceRand.nextGaussian() * f3 + 0.2F);
                            entityitem.motionZ = (double)((float)this.nfurnaceRand.nextGaussian() * f3);
                            par1World.spawnEntityInWorld(entityitem);
                        }
                    }
                }

                par1World.func_96440_m(par2, par3, par4, par5);
            }
        }

        super.breakBlock(par1World, par2, par3, par4, par5, par6);
    }

    /**
     * If this returns true, then comparators facing away from this block will use the value from
     * getComparatorInputOverride instead of the actual redstone signal strength.
     */
    public boolean hasComparatorInputOverride()
    {
        return true;
    }

    /**
     * If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal
     * strength when this block inputs to a comparator.
     */
    public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5)
    {
        return Container.func_94526_b((IInventory)par1World.getBlockTileEntity(par2, par3, par4));
    }
}

error;

2013-03-31 17:56:04 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.608 for Minecraft 1.5.1 loading
2013-03-31 17:56:04 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_07, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7
2013-03-31 17:56:04 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-03-31 17:56:05 [iNFO] [sTDOUT] 229 recipes
2013-03-31 17:56:05 [iNFO] [sTDOUT] 27 achievements
2013-03-31 17:56:05 [iNFO] [Minecraft-Client] Setting user: Player909
2013-03-31 17:56:05 [iNFO] [sTDOUT] (Session ID is -)
2013-03-31 17:56:05 [iNFO] [sTDERR] Client asked for parameter: server
2013-03-31 17:56:05 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-03-31 17:56:05 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-03-31 17:56:05 [iNFO] [sTDOUT] MinecraftForge v7.7.0.608 Initialized
2013-03-31 17:56:05 [iNFO] [ForgeModLoader] MinecraftForge v7.7.0.608 Initialized
2013-03-31 17:56:05 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-03-31 17:56:05 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-03-31 17:56:05 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\owner\Desktop\Modding1.51\jars\config\logging.properties
2013-03-31 17:56:05 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-03-31 17:56:05 [iNFO] [ForgeModLoader] Searching C:\Users\owner\Desktop\Modding1.51\jars\mods for mods
2013-03-31 17:56:06 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-03-31 17:56:06 [iNFO] [mcp] Activating mod mcp
2013-03-31 17:56:06 [iNFO] [FML] Activating mod FML
2013-03-31 17:56:06 [iNFO] [Forge] Activating mod Forge
2013-03-31 17:56:06 [iNFO] [ashtonsmod] Activating mod ashtonsmod
2013-03-31 17:56:07 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-03-31 17:56:07 [iNFO] [sTDOUT] 
2013-03-31 17:56:07 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-03-31 17:56:07 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-03-31 17:56:07 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-03-31 17:56:07 [iNFO] [sTDOUT] OpenAL initialized.
2013-03-31 17:56:07 [iNFO] [sTDOUT] 
2013-03-31 17:56:08 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-03-31 17:56:08 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-03-31 17:56:08 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-03-31 17:56:08 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-03-31 17:56:08 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-03-31 17:56:08 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-03-31 17:56:08 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-03-31 17:56:09 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-03-31 17:56:09 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-03-31 17:56:09 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-03-31 17:56:09 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-03-31 17:56:10 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-03-31 17:56:18 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.5.1
2013-03-31 17:56:18 [iNFO] [Minecraft-Server] Generating keypair
2013-03-31 17:56:19 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@113410a)
2013-03-31 17:56:19 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@113410a)
2013-03-31 17:56:19 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@113410a)
2013-03-31 17:56:19 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-03-31 17:56:20 [iNFO] [sTDOUT] loading single player
2013-03-31 17:56:20 [iNFO] [Minecraft-Server] Player909[/127.0.0.1:0] logged in with entity id 190 at (-178.3074221453115, 64.0, -114.83546603676498)
2013-03-31 17:56:20 [iNFO] [Minecraft-Server] Saving and pausing game...
2013-03-31 17:56:20 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-03-31 17:56:20 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether
2013-03-31 17:56:20 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End
2013-03-31 17:56:26 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Ticking memory connection
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:60)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-03-31 17:56:26 [iNFO] [sTDERR] Caused by: java.lang.ClassCastException: ashtonsmod.common.TileEntityNFurnace cannot be cast to net.minecraft.tileentity.TileEntityFurnace
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at ashtonsmod.common.BlockNFurnace.onBlockActivated(BlockNFurnace.java:138)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:412)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	... 6 more
2013-03-31 17:56:26 [sEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException
net.minecraft.util.ReportedException: Ticking memory connection
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:60)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.ClassCastException: ashtonsmod.common.TileEntityNFurnace cannot be cast to net.minecraft.tileentity.TileEntityFurnace
at ashtonsmod.common.BlockNFurnace.onBlockActivated(BlockNFurnace.java:138)
at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:412)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134)
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53)
... 6 more
2013-03-31 17:56:26 [sEVERE] [Minecraft-Server] This crash report has been saved to: C:\Users\owner\Desktop\Modding1.51\jars\.\crash-reports\crash-2013-03-31_17.56.26-server.txt
2013-03-31 17:56:26 [iNFO] [Minecraft-Server] Stopping server
2013-03-31 17:56:26 [iNFO] [Minecraft-Server] Saving players
2013-03-31 17:56:26 [iNFO] [Minecraft-Server] Saving worlds
2013-03-31 17:56:26 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-03-31 17:56:26 [sEVERE] [ForgeModLoader] A TileEntity type ashtonsmod.common.TileEntityNFurnace has throw an exception trying to write state. It will not persist. Report this to the mod author
java.lang.RuntimeException: class ashtonsmod.common.TileEntityNFurnace is missing a mapping! This is a bug!
at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:105)
at ashtonsmod.common.TileEntityNFurnace.writeToNBT(TileEntityNFurnace.java:185)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:310)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:127)
at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:232)
at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:284)
at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:903)
at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:344)
at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:377)
at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:240)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:521)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-03-31 17:56:26 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether
2013-03-31 17:56:26 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End
2013-03-31 17:56:26 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-03-31 17:56:26 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-03-31 17:56:26 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-03-31 17:56:26 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue
2013-03-31 17:56:26 [sEVERE] [ForgeModLoader] 
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
ashtonsmod [Ashton's Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
2013-03-31 17:56:26 [sEVERE] [ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available.
2013-03-31 17:56:26 [iNFO] [sTDERR] Exception in thread "Server thread" java.lang.RuntimeException: The ForgeModLoader state engine is invalid
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:134)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.serverStopped(Loader.java:799)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:470)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:530)
2013-03-31 17:56:26 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-03-31 17:56:36 [iNFO] [Minecraft-Client] Stopping!
2013-03-31 17:56:36 [iNFO] [sTDOUT] 
2013-03-31 17:56:36 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-03-31 17:56:36 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-03-31 17:56:36 [iNFO] [sTDOUT] 
2013-03-31 18:00:07 [iNFO] [sTDERR] Someone is closing me!

What have i missed?

Use examples, i have aspergers.

Examples make sense to me.

Link to comment
Share on other sites

 TileEntityFurnace tileentityfurnace = (TileEntityFurnace)par1World.getBlockTileEntity(par2, par3, par4);
            if (tileentityfurnace != null)
            {
                par5EntityPlayer.displayGUIFurnace(tileentityfurnace);
            }

Decide if you want to have your own TileEntity or use someone's ;-) Change it to TileEntityNFurnace

Link to comment
Share on other sites

i saw this and thought it might be but now i get an error (red line error)

      TileEntityNFurnace tileentityfurnace = (TileEntityNFurnace)par1World.getBlockTileEntity(par2, par3, par4);
            if (tileentityfurnace != null)
            {
                par5EntityPlayer.displayGUIFurnace(tileentityfurnace);
            }

            return true;
        }

 

under displayguifurnace

 

Use examples, i have aspergers.

Examples make sense to me.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • SLOT GOPAY ⇒ SITUS SLOT GOPAY LINK SLOT GOPAY RESMI HARI INI GAMPANG MENANG 2024   👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱         slot gopayadalah situs slot deposit gopay yang telah rekomendasikan di indonesia, berjuta permainan yang di sediakan bola2289 hari ini dengan deposit slot gopay 5k tanpa potongan dan gampang menang di tahun 2024
    • ▁ ▂ ▄ ▅ ▆ ▇ █ 𝐋𝐈𝐍𝐊 𝐃𝐀𝐅𝐓𝐀𝐑 █ ▇ ▆ ▅ ▄ ▂ ▁    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱     Bocoran Pola Slot Pragmatic dan Trik Slot Gacor pertama yang bisa kamu kerjakan untuk memenangkan permainan slot pragmatic play ini yaitu dengan manfaatkan pengaturan spin. Spin slot gacor sendiri terdiri seperti Spin Manual, Spin Cepat dan Turbo spin ini kelak bisa membantu kamu agar memenangkan maxwin dalam sekejap. Karena setiap permainan slot online pragmatic play tentunya punya pengaturan turbo spin dan spin cepat. Umumnya kamu bisa memperoleh permainan slot gacor pragmatic play yang berbentuk tombol dengan tulisan “Turbo Spin” dan “Spin Cepat”. Kalaulah kamu ingin menjadi juara di gates of olympus, bermainlah dengan Bocoran Pola Slot Gacor karena itu perlu untuk kamu mengatur turbo spin dan spin pesatnya ini untuk kamu gunakan dalam mempercepat permainan judi slot online itu. Informasi Bocoran Pola dan Trik Slot Gacor Paling dipercaya Bisa Maxwin Pola slot gacor hari ini yang pertama kamu direferensikan buat menggunakan turbo spin, karena itu berbeda dengan taktik untuk mencetak kemenangan judi online slot pragmatic dengan lakukan betting. Betting ini yakni panggilan dari taruhan dalam permainan slot online, karena itu kalaulah kamu mau bermain, karena itu betting lebih bernilai untuk kamu kenali dan kerjakan dengan baik dengan pola slot hari ini. Dalam kerjakan pola dan Trik pola slot olympus, beberapa pemain memang tidak ada keterpaksaan untuk tetapkan nominal sampai kamu bisa bebas saat lakukan betting dengan nominal yang rendah atau tinggi. Dengan trik slot olympus maxwin ini kamu dapat segera mempermainkan gamenya karena itu kamu bisa buat merasakan langsung bagaimana triknya memainkan permainan pragmatic play ini. Pola gacor olympus terbaru, pola gacor olympus bet 200, pola maxwin olympus, trik pola slot olympus, pola gacor olympus malam ini, pola gacor olympus hari ini modal receh, pola gacor olympus siang hari ini, rumus permainan slot pragmatic, kode slot pragmatic, rahasia pola slot, pola slot gacor, pola slot pragmatic hari ini, jam hoki main slot pragmatic. Bocoran Pola Slot Gacor Gates Of Olympus dan Trik agar bisa memenangkan slot gacor pragmatic play ini adalah dengan cara pakai semua chip yang ada. Dalam permainan pragmatic play kamu bisa melakukan taruhan pakai chip, tidak hanya pakai bet saja. Dan rerata chip ini bisa kamu dapatkan dari beberapa permainan judi pragmatic berwujud kepingan kecil di mana kamu bisa dapatkan beberapa bentuk kepingan. Kamu juga bebas buat manfaatkan semua chip yang kamu punya dalam permainan itu atau hanya menggunakan beberapa chip saja sesuai kemauan kamu. Tetapi kalaulah kamu ingin menjadi juara permainannya, sehingga kamu disarankan buat pakai semua chip. Karena oleh menggunakan semua chip dalam permainan, karena itu kamu segera dapat mendapat bonus dalam jumlah yang besar. Tersebut beberapa Pola dan Trik menang permainan slot gacor pragmatic play. Strategi pas terakhir yaitu dengan pakai saldo akun sebanyak-banyaknya. Dengan manfaatkan saldo permainan sebanyaknya, karenanya kecil kemungkinan kamu akan mengulang permainan. Oleh karena itu langkah ini bisa demikian efektif untuk kamu gunakan waktu mempermainkan permainan judi online slot gacor pragmatic play. Langkah Pilih Bocoran Pola dan Trik Slot Gacor Paling dipercaya Gampang Maxwin Ada beragam Bocoran Pola dan Trik Slot Gacor agar bisa menang yang lumayan gampang memberi hasil atau keuntungan maxwin yang besar buat anda. Pertama kali Trik ini dapat kita aplikasikan dan mempelajari ke semua website judi slot online. Apa Trik gampang meraih kemenangan di games slot pragmatic play online? Berikut opsinya : Permainkan Games Slot 3 Gulungan Pola slot gacor pragmatic harus bettor pahami jika tipe permainan yang mempunyai 3 gulungan lebih gampang untuk dimenangi. Permainan slot 3 gulungan pragmatic di atas kertas bisa dimenangi secara benar-benar gampang. Bahkan juga betaruh pemula juga dapat melakukan dengan trik slot olympus maxwin x500. Trik pola slot olympus ke dua paling mudah untuk meraih kemenangan di judi slot pragmatic play online ialah mendapati permainan yang gampang lebih dulu. Permainan yang gampang tentu saja semakin lebih cepat dalam memberi kemenangan. Karena itu, pilih permainan yang cepat dan mudah untuk ditaklukkan dengan pola slot gacor malam ini gates of olympus. Pakai bocoran slot gacor pragmatic hari ini, untuk menang secara mudah, sebaiknya memutar spin lebih dulu. Kita sebagai bettors kerap memperoleh kesadaran dan memahami pola slot pragmatic. Jadi ketika menggunakan pola slot olympus ini dapat dijadikan modal khusus permainan. Tentukan Games yang Gampang Dahulu Trik Pola Gacor Olympus Menang Besar di Permainan Judi Slot, selainnya menang gampang, ada pula langkah meraih kemenangan dengan nominal besar. Beberapa trik ini bisa dipakai untuk capai keuntungan yang optimal. Berikut penuturannya. Putar Sekitar Kemungkinan Untuk menang besar gunakan pola slot olympus x500, jumlah perputaran atau bermain mesin slot pragmatic akan punya pengaruh besar. Yakinkan perputaran yang kita kerjakan banyak. Minimal kerjakan spin sampai 20 kali supaya kesempatan kemenangannya besar dengan trik beli spin olympus dari kami. Tentukan Jekpot Besar bila ingin menang besar dalam slot bermain pragmatic? Mencari saja tipe permainan yang mempunyai jekpot besar. Jekpot besar penting dalam penyeleksian permainan. Dengan jekpot yang besar karena itu keuntungan yang didapatkan besar mudah-mudahan pola slot gacor hari ini olympus membawa anda menang banyak. Trik Pola Gacor Olympus Hari Ini Tidak boleh Stop Sampai Anda Memperoleh Jekpot Khusus. Ini langkah baik untuk menang super besar. Kita harus terus memutar atau mainkan mesin judi slot online di pragmatic online sampai jekpot sukses didapat dan tidak ada uang yang di sia-siakan ketika mengikuti pola slot olympus dari kami. Tersebut langkah bermain situs slot online pragmatic play supaya menang besar dan gampang yang dapat kita coba. Beberapa cara itu bisa dibuktikan efisien jika dipakai . Maka, kita tak perlu sangsi atau cemas dengan beberapa cara itu. Karena, semua langkah di atas sudah tentu baik dan tepat untuk menang. Untuk Pola Slot Gacor Online Sah Menang Berturut-turut Jam gacor slot pragmatic ini hari telah, bocoran slot gacor ini hari terhitung telah, saat ini waktunya admin Slot Gacor memberikan tambahan teknik slot gacor atau pola slot gacor terbaik supaya meraih kemenangan berturut-turut setiap kali bermain. Dengan kombinasi sepenuhnya akan memudahkan anda sanggup maxwin di dalam beberapa saat saja. Lantas bagaimana pola strategi yang hendak diberi? Ingin pahami ya? Ingin tahu pasti bosku? Langsung info pola slot gacor pragmatic slot admin Slot Gacor yaitu : Pola Slot Gacor Olympus Spin Auto 50x ( 0.20) Spin Auto 20x ( 0.40) Spin Spasi 20x ( 0.40) Contreng Ganda Chance Buy freespin ( 0.20 - 0.80) Pola Slot Gacor Slot Bonanza Spin Auto 40x Quick Spin ( 0.20) Spin Auto 20x Turbo Spin ( 0.40) Spin Spasi 15x ( 0.40) Contreng Ganda Chance Buy freespin ( 0.20 - 0.80) Pola Slot Gacor Starlight Princess Spin Auto 80x Quick Spin ( 0.20) Spin Auto 40x Turbo Spin ( 0.40) Contreng Ganda Chance Buy freespin ( 0.20 - 0.80) Pola Slot Gacor Wild West Gold Spin Auto 100x Quick Spin ( 0.20) Spin Auto 80x Turbo Spin ( 0.40) Spin Auto 50x ( 0.80) Spin Spasi 25x ( 1.00) Keuntungan Daftar Di Situs Bocoran Pola Trik Slot Gacor Maxwin Dengan bermain Slot Online di website Pola Slot Gacor ini hari 2023 yang adalah website judi Slot Gacor ini hari di indonesia yang terbaik hingga kepuasan memainkan permainan slot online ini hari tentu tercipta terlebih bila anda gabung bersama sama yang menjadi satu diantara agen slot online gacor ini hari paling dipercaya tahun 2023. Kenyataannya anda tentu untung dan di mana tentu bersama dengan bermacam- jenis service yang ada. Untuk anggota slot online ini hari, kalian tentu mendapatkan semua perjudian online ini hari dari kami adalah 9Gaming, bersama dengan performa yang baru dan terdapat feature menarik, dan bonus jekpot slot online ini hari Benar-benar Besar. Dengan bermacam- jenis Keuntungan lainnya dari situs Slot Online Benar-benar Baru dan Paling dipercaya, adalah: Proses daftar yang terlalu Gampang dilaksanakan. Withdraw dan Deposit instant dan simpel. Bisa usaha demonstrasi akun slot pragmatic khususnya dulu. Bayar setiap kemenangan pemain. Siapkan website judi slot promosi ini hari 2023. Ada banyak sekali bonus dan promo yang dapat anda punyai saat tergabung dengan web judi slot online gampang menang, antara lainnya seperti: Bonus New Member 100 Slot Game. Bonus Cashback. Bonus Komisi Tiap-Tiap hari slot online. Bonus Judi Bola/ Sportbook Cashback. Bonus Komisi setiap hari Live Kasino. Bonus Komisi Judi tembak ikan online. Bonus Komisi Judi Togel Online. Bonus Turn Over. Promosi Slot Deposit DANA dan Pulsa Tanpa Potongan.
    • BANDAR4D : SITUS SLOT ONLINE TERGOKIL HARI INI GAMPANG MENANG BANJIR SCATTER HITAM 2024   👉𝐋𝐈𝐍𝐊 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱       Selamat bergabung di SLOT GACOR HARI INI merupakan daftar situs judi SLOT GACOR HARI INI dan SLOT GACOR HARI INI terpercaya di Indonesia. Pada saat ini di era teknologi yang semakin berkembang maju saat ini, banyak orang berlomba-lomba untuk membuat sebuah arena taruhan layaknya game judi slot online deposit pulsa atau dengan menggunakan uang asli. Judi SLOT GACOR HARI INI saat ini sedang mencapai puncak tertinggi dimana banyak orang-orang ingin bermain dengan meraih keuntungan yang berlipat. Alasan orang bermain judi dikarenakan pandemi yang membuat masyarakat kesulitan untuk mendapatkan uang lebih atau tambahan untuk mencukupi kebutuhan hidupnya.
    • DAFTAR SLOT GACOR DISINI DAFTAR SLOT GACOR DISINI DAFTAR SLOT GACOR DISINI Slot deposit dana minimal 5000 sangat terjangkau dan anda sudah dapat menikmati permainan slot online terbaik dengan RTP Winrate tertinggi 98% gampang menang. Slot deposit dana juga sudah lolos uji dan terbukti aman untuk bermain dan daftar di situs judi slot deposit dana 5000 tanpa potongan resmi. TAG : Slot Dana Slot Dana Slot Dana Slot Dana Slot Dana 5000 Slot Dana 5000 Slot Dana 5000
    • SLOT MAXWIN | SITUS JUDI ONLINE PALING GACOR TERBARU HARI INI 2024 👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱     Selamat bergabung di SLOT GACOR HARI INI merupakan daftar situs judi SLOT GACOR HARI INI dan SLOT GACOR HARI INI terpercaya di Indonesia. Pada saat ini di era teknologi yang semakin berkembang maju saat ini, banyak orang berlomba-lomba untuk membuat sebuah arena bertaruh layaknya game judi slot online deposit pulsa atau dengan menggunakan uang asli. Judi SLOT GACOR HARI INI  saat ini sedang mencapai puncak tertinggi dimana banyak orang-orang ingin bermain dengan meraih keuntungan yang berlipat. Alasan orang bermain judi dikarenakan pandemi yang membuat masyarakat kesulitan untuk mendapatkan uang lebih atau tambahan untuk mencukupi kebutuhan hidupnya.
  • Topics

×
×
  • Create New...

Important Information

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