use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CraftingPriority method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.setPriority(getInteger());
}
use of logisticspipes.modules.ModuleCrafter in project LogisticsPipes by RS485.
the class CraftingPipeSign method getRenderData.
@Override
public IPipeSignData getRenderData(CoreRoutedPipe pipe) {
PipeItemsCraftingLogistics cpipe = (PipeItemsCraftingLogistics) pipe;
if (cpipe != null) {
List<ItemIdentifierStack> craftables = cpipe.getCraftedItems();
if (craftables != null && craftables.size() > 0) {
ItemIdentifierStack itemIdentifierStack = craftables.get(0);
ModuleCrafter logisticsMod = cpipe.getLogisticsModule();
return new CraftingPipeSignData(itemIdentifierStack, logisticsMod.satelliteId);
} else {
return new CraftingPipeSignData(null, -1);
}
}
return null;
}
Aggregations