Package net.machinemuse.powersuits.block

Examples of net.machinemuse.powersuits.block.TileEntityLuxCapacitor


                Block block = worldObj.getBlock(x, y, z);
                if (block == null || block.isAir(worldObj, x, y, z)) {
                    Block blockToStickTo = worldObj.getBlock(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ);
                    if (blockToStickTo.isNormalCube(worldObj, x, y, z)) {
                        worldObj.setBlock(x, y, z, MPSItems.luxCapacitor(), 0, 7);
                        worldObj.setTileEntity(x, y, z, new TileEntityLuxCapacitor(dir, red, green, blue));
                    } else {
                        for (ForgeDirection d : ForgeDirection.values()) {
                            int xo = x + d.offsetX;
                            int yo = y + d.offsetY;
                            int zo = z + d.offsetZ;
                            blockToStickTo = worldObj.getBlock(xo, yo, zo);
                            if (blockToStickTo.isNormalCube(worldObj, x, y, z)) {
                                worldObj.setBlock(x, y, z, MPSItems.luxCapacitor(), 0, 7);
                                worldObj.setTileEntity(x, y, z, new TileEntityLuxCapacitor(d, red, green, blue));
                            }
                        }
                    }
                }
            }
View Full Code Here


        return framemodel;
    }

    @Override
    public void renderAt(TileEntity undifferentiatedtileentity, double x, double y, double z, float partialTickTime) {
        TileEntityLuxCapacitor tileentity = (TileEntityLuxCapacitor) undifferentiatedtileentity;
        this.bindTextureByName(Config.TEXTURE_PREFIX() + "models/thusters_uvw_2.png");
        glPushMatrix();
        glTranslated(x + 0.5, y + 0.5, z + 0.5);
        double scale = 0.0625;
        glScaled(scale, scale, scale);
View Full Code Here

TOP

Related Classes of net.machinemuse.powersuits.block.TileEntityLuxCapacitor

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.