use of logisticspipes.modules.ModuleActiveSupplier in project LogisticsPipes by RS485.
the class ActiveSupplierSlot method getClientGui.
@Override
public Object getClientGui(EntityPlayer player) {
ModuleActiveSupplier module = this.getLogisticsModule(player.getEntityWorld(), ModuleActiveSupplier.class);
if (module == null) {
return null;
}
module.setLimited(isLimit);
if (patternUpgarde) {
module.setPatternMode(PatternMode.values()[mode]);
} else {
module.setSupplyMode(SupplyMode.values()[mode]);
}
return new GuiSupplierPipe(player.inventory, module.getDummyInventory(), module, patternUpgarde, slotArray);
}
Aggregations