Package net.minecraft.src.buildcraft.transport

Examples of net.minecraft.src.buildcraft.transport.TileGenericPipe


        }
    }

    private void onTelePipeDesc(PacketAdditionalPipes packet, EntityPlayer player) {
       
        TileGenericPipe tile = (TileGenericPipe) ModLoader.getMinecraftServerInstance().getWorldManager(player.dimension)
                .getBlockTileEntity(packet.posX, packet.posY, packet.posZ);
       
        tile.pipe.handlePacket(packet);
    }
View Full Code Here


        }
    }

    private void onTelePipeDesc(PacketAdditionalPipes packet) {
     
        TileGenericPipe tile = (TileGenericPipe) ModLoader.getMinecraftInstance().theWorld
                .getBlockTileEntity(packet.posX, packet.posY, packet.posZ);
       
        tile.pipe.handlePacket(packet);
    }
View Full Code Here

        destPos.moveForwards(1.0);

        TileEntity tile = worldObj.getBlockTileEntity((int)destPos.x, (int)destPos.y, (int)destPos.z);

        if (tile instanceof TileGenericPipe) {
            TileGenericPipe pipe = (TileGenericPipe)tile;

            if (pipe.pipe.transport instanceof PipeTransportItems) {
                //This pipe can actually receive items
                idsToRemove.add(item.entityId);
                ((PipeTransportItems) this.transport).scheduleRemoval(item);
View Full Code Here

            double powerToSend2 = powerToSendAfterLoss / needsPower.size();

            //System.out.println("needsPower: " + needsPower.size() + " - PowerToSend2: " + powerToSend2);
            for (int b = 0; b < needsPower.size(); b++) {
                if (needsPower.get(b).tile instanceof TileGenericPipe) {
                    TileGenericPipe nearbyTile = (TileGenericPipe) needsPower.get(b).tile;
                    PipeTransportPower nearbyTransport = (PipeTransportPower) nearbyTile.pipe.transport;
                    nearbyTransport.receiveEnergy(needsPower.get(b).ori, powerToSend);
                }
                else if (needsPower.get(b).tile instanceof IPowerReceptor) {
                    IPowerReceptor pow = (IPowerReceptor) needsPower.get(b);
View Full Code Here

                    //System.out.println(getPosition().toString() + " RequestEnergy: " + from.toString() + " - Val: " + is + " - Dest: " + destPos.toString());

                    TileEntity tile = worldObj.getBlockTileEntity((int)destPos.x, (int)destPos.y, (int)destPos.z);

                    if (tile instanceof TileGenericPipe) {
                        TileGenericPipe nearbyTile = (TileGenericPipe) tile;
                        PipeTransportPower nearbyTransport = (PipeTransportPower) nearbyTile.pipe.transport;
                        nearbyTransport.requestEnergy(newPos.reverse(), is);
                    }
                }
            }
View Full Code Here

        }
        else if (entity instanceof TileEngine) {
            return false;
        }
        else if (entity instanceof TileGenericPipe) {
            TileGenericPipe pipe = (TileGenericPipe) entity;
            return pipe.pipe.transport instanceof PipeTransportItems;
        }
        else if (entity instanceof IInventory) {
            if (new StackUtil(item.item).checkAvailableSlot((IInventory) entity,
                    false, p.orientation.reverse())) {
View Full Code Here

TOP

Related Classes of net.minecraft.src.buildcraft.transport.TileGenericPipe

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.