Package logisticspipes.network.packets.hud

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

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 HUDStopModuleWatchingPacket extends ModuleCoordinatesPacket {

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

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

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

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

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.