Examples of IConductor


Examples of micdoodle8.mods.galacticraft.api.transmission.tile.IConductor

    {
        int tierfound = 2;
        Iterator<IConductor> it = this.getTransmitters().iterator();
        while (it.hasNext())
        {
            IConductor conductor = it.next();

            if (conductor == null)
            {
                it.remove();
                continue;
            }

            TileEntity tile = (TileEntity) conductor;
            World world = tile.getWorldObj();
            //Remove any conductors in unloaded chunks
            if (tile.isInvalid() || world == null || !world.blockExists(tile.xCoord, tile.yCoord, tile.zCoord))
            {
                it.remove();
                continue;
            }

            if (conductor != world.getTileEntity(tile.xCoord, tile.yCoord, tile.zCoord))
            {
                it.remove();
                continue;
            }

            if (conductor.getTierGC() < 2)
            {
                tierfound = 1;
            }

            if (conductor.getNetwork() != this)
            {
                conductor.setNetwork(this);
                conductor.onNetworkChanged();
            }
        }

        //This will set the network tier to 2 if all the conductors are tier 2
        this.networkTierGC = tierfound;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.transmission.tile.IConductor

    {
        int tierfound = 2;
        Iterator<IConductor> it = this.getTransmitters().iterator();
        while (it.hasNext())
        {
            IConductor conductor = it.next();

            if (conductor == null)
            {
                it.remove();
                continue;
            }

            TileEntity tile = (TileEntity) conductor;
            World world = tile.getWorldObj();
            //Remove any conductors in unloaded chunks
            if (tile.isInvalid() || world == null)
            {
                it.remove();
                continue;
            }

            if (conductor.getTierGC() < 2)
            {
                tierfound = 1;
            }

            if (conductor.getNetwork() != this)
            {
                conductor.setNetwork(this);
                conductor.onNetworkChanged();
            }
        }

        //This will set the network tier to 2 if all the conductors are tier 2
        this.networkTierGC = tierfound;
View Full Code Here

Examples of universalelectricity.api.energy.IConductor

            // Iterate threw list of wires
            Iterator<IConductor> it = getConnectors().iterator();

            while (it.hasNext())
            {
                IConductor conductor = it.next();

                if (conductor != null)
                {
                    reconstructConnector(conductor);
                }
View Full Code Here

Examples of universalelectricity.core.block.IConductor

        {
            TileEntity te = worldObj.getBlockTileEntity(x, y, z);
           
            if (te instanceof IConductor)
            {
                IConductor wireTile = (IConductor) te;
               
//                ElectricityPack getProduced = wireTile.getNetwork().getProduced();
//               
//                player.addChatMessage("Electric Expansion: " + ElectricityDisplay.getDisplay(getProduced.amperes, ElectricUnit.AMPERE) + ", "
//                        + ElectricityDisplay.getDisplay(getProduced.voltage, ElectricUnit.VOLTAGE) + ", " + ElectricityDisplay.getDisplay(getProduced.getWatts() * 20, ElectricUnit.WATT));
               
                if (ElectricExpansion.debugRecipes)
                    player.addChatMessage(wireTile.getNetwork().toString());
               
                return true;
            }
            else
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.