package logisticspipes.network.packets.cpipe;
import logisticspipes.modules.ModuleCrafter;
import logisticspipes.network.abstractpackets.ModernPacket;
import logisticspipes.network.abstractpackets.ModuleCoordinatesPacket;
import net.minecraft.entity.player.EntityPlayer;
public class CPipePrevSatellite extends ModuleCoordinatesPacket {
public CPipePrevSatellite(int id) {
super(id);
}
@Override
public ModernPacket template() {
return new CPipePrevSatellite(getId());
}
@Override
public void processPacket(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if(module == null) return;
module.setPrevSatellite(player);
}
}