use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CraftingPipePrevAdvancedSatellitePacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.setPrevSatellite(player, getInteger());
}
use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CPipeCleanupStatus method processPacket.
@Override
@ClientSideOnlyMethodContent
public void processPacket(EntityPlayer player) {
final ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.cleanupModeIsExclude = mode;
if (Minecraft.getMinecraft().currentScreen instanceof GuiCraftingPipe) {
((GuiCraftingPipe) Minecraft.getMinecraft().currentScreen).onCleanupModeChange();
}
}
use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CPipeCleanupToggle method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.toogleCleaupMode();
MainProxy.sendPacketToPlayer(PacketHandler.getPacket(CPipeCleanupStatus.class).setMode(module.cleanupModeIsExclude).setPacketPos(this), player);
}
use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CPipeSatelliteId method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.setSatelliteId(pipeId, -1);
}
use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CraftingAdvancedSatelliteId method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.setSatelliteId(getInteger(), getInteger2());
}
Aggregations