Package buildcraft.transport.network

Examples of buildcraft.transport.network.PacketFluidUpdate


      boolean init = false;
      if (++clientSyncCounter > BuildCraftCore.longUpdateFactor) {
        clientSyncCounter = 0;
        init = true;
      }
      PacketFluidUpdate packet = computeFluidUpdate(init, true);
      if (packet != null) {
        BuildCraftTransport.instance.sendToPlayers(packet, container.getWorldObj(), container.xCoord, container.yCoord, container.zCoord, DefaultProps.PIPE_CONTENTS_RENDER_DIST);
      }
    }
  }
View Full Code Here


      this.renderCache = renderCacheCopy;
      this.colorRenderCache = colorRenderCacheCopy;
    }

    if (changed || initPacket) {
      PacketFluidUpdate packet = new PacketFluidUpdate(container.xCoord, container.yCoord, container.zCoord, initPacket);
      packet.renderCache = renderCacheCopy;
      packet.colorRenderCache = colorRenderCacheCopy;
      packet.delta = delta;
      return packet;
    }
View Full Code Here

TOP

Related Classes of buildcraft.transport.network.PacketFluidUpdate

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.