use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CraftingModuleInHand method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
if (!(dummy.getModule() instanceof ModuleCrafter)) {
return null;
}
MainProxy.sendPacketToPlayer(((ModuleCrafter) dummy.getModule()).getCPipePacket(), player);
dummy.setInventory(((ModuleCrafter) dummy.getModule()).getDummyInventory());
dummy.addNormalSlotsForPlayerInventory(18, 97);
//Input slots
for (int l = 0; l < 9; l++) {
dummy.addFuzzyDummySlot(l, 18 + l * 18, 18, ((ModuleCrafter) dummy.getModule()).fuzzyCraftingFlagArray[l]);
}
//Output slot
dummy.addFuzzyDummySlot(9, 90, 64, ((ModuleCrafter) dummy.getModule()).outputFuzzyFlags);
return dummy;
}
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 CPipeSatelliteImport method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.importFromCraftingTable(player);
}
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());
}
use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class FluidCraftingAdvancedSatelliteId method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.setFluidSatelliteId(getInteger(), getInteger2());
}
Aggregations