Package pneumaticCraft.common.tileentity

Examples of pneumaticCraft.common.tileentity.TileEntityAssemblyPlatform


    }

    @Override
    public void renderDynamic(float size, TileEntity te, float partialTicks){
        if(te instanceof TileEntityAssemblyPlatform) {
            TileEntityAssemblyPlatform tile = (TileEntityAssemblyPlatform)te;
            EntityItem ghostEntityItem = null;
            if(tile.getHeldStack() != null) {
                ghostEntityItem = new EntityItem(tile.getWorldObj());
                ghostEntityItem.hoverStart = 0.0F;
                ghostEntityItem.setEntityItemStack(tile.getHeldStack());
            }
            boolean fancySetting = RenderManager.instance.options.fancyGraphics;
            RenderManager.instance.options.fancyGraphics = true;
            renderModel(size, tile.oldClawProgress + (tile.clawProgress - tile.oldClawProgress) * partialTicks, ghostEntityItem);
            RenderManager.instance.options.fancyGraphics = fancySetting;
View Full Code Here


    //overriden here because the Assembly Platform isn't implementing IInventory (intentionally).
    @Override
    protected void dropInventory(World world, int x, int y, int z){
        TileEntity tileEntity = world.getTileEntity(x, y, z);
        if(!(tileEntity instanceof TileEntityAssemblyPlatform)) return;
        TileEntityAssemblyPlatform inventory = (TileEntityAssemblyPlatform)tileEntity;
        Random rand = new Random();
        ItemStack itemStack = inventory.getHeldStack();
        if(itemStack != null && itemStack.stackSize > 0) {
            float dX = rand.nextFloat() * 0.8F + 0.1F;
            float dY = rand.nextFloat() * 0.8F + 0.1F;
            float dZ = rand.nextFloat() * 0.8F + 0.1F;

View Full Code Here

TOP

Related Classes of pneumaticCraft.common.tileentity.TileEntityAssemblyPlatform

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.