Package logisticspipes.network.packets.cpipe

Source Code of logisticspipes.network.packets.cpipe.CraftingFuzzyFlag

package logisticspipes.network.packets.cpipe;

import logisticspipes.modules.ModuleCrafter;
import logisticspipes.network.abstractpackets.Integer2ModuleCoordinatesPacket;
import logisticspipes.network.abstractpackets.ModernPacket;
import net.minecraft.entity.player.EntityPlayer;

public class CraftingFuzzyFlag extends Integer2ModuleCoordinatesPacket {
  public CraftingFuzzyFlag(int id) {
    super(id);
  }
 
  @Override
  public void processPacket(EntityPlayer player) {
    ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
    if(module == null) return;
    module.setFuzzyCraftingFlag(getInteger(), getInteger2(), player);
  }
 
  @Override
  public ModernPacket template() {
    return new CraftingFuzzyFlag(getId());
  }
 
}
TOP

Related Classes of logisticspipes.network.packets.cpipe.CraftingFuzzyFlag

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.