Package universalelectricity.core.vector

Examples of universalelectricity.core.vector.Vector3


    @Override
    public void openChest()
    {
        if (!this.worldObj.isRemote)
        {
            PacketManager.sendPacketToClients(this.getDescriptionPacket(), this.worldObj, new Vector3(this), 15.0D);
        }
        this.playersUsing++;
    }
View Full Code Here


       
        if (!this.worldObj.isRemote)
        {
            if (this.ticks % 3L == 0L && this.playersUsing > 0)
            {
                PacketManager.sendPacketToClients(this.getDescriptionPacket(), this.worldObj, new Vector3(this), 12.0D);
            }
        }
    }
View Full Code Here

                }
            }
            */
            if (!this.worldObj.isRemote)
            {
                PacketManager.sendPacketToClients(this.getDescriptionPacket(), this.worldObj, new Vector3(this), 12.0D);
            }
        }
    }
View Full Code Here

            this.lastReading = this.electricityReading;
           
            if (!this.worldObj.isRemote)
            {
                ForgeDirection inputDirection = ForgeDirection.getOrientation(ROTATION_MATRIX[this.getBlockMetadata()]);
                TileEntity inputTile = VectorHelper.getTileEntityFromSide(this.worldObj, new Vector3(this), inputDirection);
               
                if (inputTile != null && inputTile instanceof INetworkProvider)
                {
                    if (inputTile instanceof IConductor)
                    {
                        this.network = ((IConductor) inputTile).getNetwork();
                       
                        ElectricityPack temp = ElectricExpansionEventHandler.INSTANCE.getNetworkStat(this.network);
                        ElectricExpansionEventHandler.INSTANCE.cleanNetworkStat(this.network);
                       
                        if (temp != null)
                        {
                            this.electricityReading = temp.clone();
                            this.electricityReading.amperes *= 20.0F;
                        }
                        else
                        {
                            this.electricityReading = EMPTY_PACK.clone();
                        }
                    }
                    else
                    {
                        this.network = ((INetworkProvider) inputTile).getNetwork();
                       
                        this.electricityReading = EMPTY_PACK.clone();
                    }
                }
                else
                {
                    this.electricityReading = EMPTY_PACK.clone();
                }
               
                if (this.electricityReading.amperes != this.lastReading.amperes)
                {
                    PacketManager.sendPacketToClients(this.getDescriptionPacket(), this.worldObj, new Vector3(this), 20.0D);
                }
            }
        }
    }
View Full Code Here

   
    @Override
    public void initiate()
    {
        ForgeDirection facing = ForgeDirection.getOrientation(this.getBlockMetadata());
        TileEntity inputTile = VectorHelper.getTileEntityFromSide(this.worldObj, new Vector3(this), facing);
       
        if (inputTile instanceof INetworkProvider)
        {
            this.network = ((INetworkProvider) inputTile).getNetwork();
            if (inputTile instanceof IHiveNetworkMember && ((IHiveNetworkMember) inputTile).getHiveNetwork() == null)
View Full Code Here

TOP

Related Classes of universalelectricity.core.vector.Vector3

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.