Package logisticspipes.network.packets.hud

Source Code of logisticspipes.network.packets.hud.HUDStartModuleWatchingPacket

package logisticspipes.network.packets.hud;

import logisticspipes.interfaces.IModuleWatchReciver;
import logisticspipes.network.abstractpackets.ModernPacket;
import logisticspipes.network.abstractpackets.ModuleCoordinatesPacket;
import net.minecraft.entity.player.EntityPlayer;

public class HUDStartModuleWatchingPacket extends ModuleCoordinatesPacket {

  public HUDStartModuleWatchingPacket(int id) {
    super(id);
  }

  @Override
  public ModernPacket template() {
    return new HUDStartModuleWatchingPacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    IModuleWatchReciver handler = this.getLogisticsModule(player, IModuleWatchReciver.class);
    if(handler == null) return;
    handler.startWatching(player);
  }
}
TOP

Related Classes of logisticspipes.network.packets.hud.HUDStartModuleWatchingPacket

TOP
Copyright © 2018 www.massapi.com. 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.