Search in sources :

Example 11 with EnumWirePart

use of buildcraft.api.transport.EnumWirePart in project BuildCraft by BuildCraft.

the class WireManager method tick.

public void tick() {
    if (!initialised) {
        initialised = true;
        if (!holder.getPipeWorld().isRemote) {
            for (EnumWirePart part : parts.keySet()) {
                getWireSystems().buildAndAddWireSystem(new WireSystem.WireElement(holder.getPipePos(), part));
            }
        }
        updateBetweens(false);
    }
}
Also used : EnumWirePart(buildcraft.api.transport.EnumWirePart)

Aggregations

EnumWirePart (buildcraft.api.transport.EnumWirePart)11 EnumFacing (net.minecraft.util.EnumFacing)7 TilePipeHolder (buildcraft.transport.tile.TilePipeHolder)6 EnumWireBetween (buildcraft.transport.wire.EnumWireBetween)6 PipePluggable (buildcraft.api.transport.pluggable.PipePluggable)5 Pipe (buildcraft.transport.pipe.Pipe)5 RayTraceResult (net.minecraft.util.math.RayTraceResult)5 Vec3d (net.minecraft.util.math.Vec3d)4 ItemStack (net.minecraft.item.ItemStack)3 AxisAlignedBB (net.minecraft.util.math.AxisAlignedBB)3 Nullable (javax.annotation.Nullable)2 EnumDyeColor (net.minecraft.item.EnumDyeColor)2 Item (net.minecraft.item.Item)2 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)2 EnumPipePart (buildcraft.api.core.EnumPipePart)1 IItemPluggable (buildcraft.api.transport.IItemPluggable)1 IWireManager (buildcraft.api.transport.IWireManager)1 WireNode (buildcraft.api.transport.WireNode)1 IPipe (buildcraft.api.transport.pipe.IPipe)1 IPipeHolder (buildcraft.api.transport.pipe.IPipeHolder)1