Package mekanism.common.network.PacketTransmitterUpdate

Examples of mekanism.common.network.PacketTransmitterUpdate.TransmitterUpdateMessage


 
  @SubscribeEvent
  public void onEnergyTransferred(EnergyTransferEvent event)
  {
    try {
      packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.ENERGY, Coord4D.get((TileEntity)event.energyNetwork.transmitters.iterator().next()), event.power), event.energyNetwork.getPacketRange());
    } catch(Exception e) {}
  }
View Full Code Here


 
  @SubscribeEvent
  public void onGasTransferred(GasTransferEvent event)
  {
    try {
      packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.GAS, Coord4D.get((TileEntity)event.gasNetwork.transmitters.iterator().next()), event.transferType, event.didTransfer), event.gasNetwork.getPacketRange());
    } catch(Exception e) {}
  }
View Full Code Here

 
  @SubscribeEvent
  public void onLiquidTransferred(FluidTransferEvent event)
  {
    try {
      packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.FLUID, Coord4D.get((TileEntity)event.fluidNetwork.transmitters.iterator().next()), event.fluidType, event.didTransfer), event.fluidNetwork.getPacketRange());
    } catch(Exception e) {}
  }
View Full Code Here

  {
    super.onModeChange(side);

    if(!world().isRemote)
    {
      Mekanism.packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.UPDATE, Coord4D.get(tile())), new Range4D(Coord4D.get(tile())));
    }
  }
View Full Code Here

  {
    super.onNeighborTileChanged(side, weak);

    if(!world().isRemote)
    {
      Mekanism.packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.UPDATE, Coord4D.get(tile())), new Range4D(Coord4D.get(tile())));
    }
  }
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketTransmitterUpdate.TransmitterUpdateMessage

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.