Package pneumaticCraft.common.tileentity

Examples of pneumaticCraft.common.tileentity.TileEntityAssemblyIOUnit


    @Override
    public void renderDynamic(float size, TileEntity te, float partialTicks){
        FMLClientHandler.instance().getClient().getTextureManager().bindTexture(te != null && te.getBlockMetadata() == 0 ? Textures.MODEL_ASSEMBLY_ROBOT_BLUE : Textures.MODEL_ASSEMBLY_ROBOT_ORANGE);
        if(te instanceof TileEntityAssemblyIOUnit) {
            TileEntityAssemblyIOUnit tile = (TileEntityAssemblyIOUnit)te;
            float[] renderAngles = new float[5];
            for(int i = 0; i < 5; i++) {
                renderAngles[i] = tile.oldAngles[i] + (tile.angles[i] - tile.oldAngles[i]) * partialTicks;
            }
            // float rotationAngle = (float) (720.0 *
            // (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);

            EntityItem ghostEntityItem = null;
            if(tile.inventory[0] != null) {
                ghostEntityItem = new EntityItem(tile.getWorldObj());
                ghostEntityItem.hoverStart = 0.0F;
                ghostEntityItem.setEntityItemStack(tile.inventory[0]);
            }
            boolean fancySetting = RenderManager.instance.options.fancyGraphics;
            RenderManager.instance.options.fancyGraphics = true;
View Full Code Here


        TileEntity tileEntity = world.getTileEntity(x, y, z);

        if(!(tileEntity instanceof TileEntityAssemblyIOUnit)) return;

        TileEntityAssemblyIOUnit inventory = (TileEntityAssemblyIOUnit)tileEntity;
        Random rand = new Random();

        ItemStack itemStack = inventory.inventory[0];

        if(itemStack != null && itemStack.stackSize > 0) {
View Full Code Here

TOP

Related Classes of pneumaticCraft.common.tileentity.TileEntityAssemblyIOUnit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.