use of ivorius.reccomplex.gui.table.cell.TableCellIntegerRange in project RecurrentComplex by Ivorforce.
the class TableDataSourceInvGenMultiTag method cellForIndexInSegment.
@Override
public TableCell cellForIndexInSegment(GuiTable table, int index, int segment) {
if (segment == 0) {
if (index == 0) {
TableCellIntegerRange cell = new TableCellIntegerRange("itemCount", item.getGenerationCount(stack), 0, 64);
cell.addPropertyConsumer(range -> item.setGenerationCount(stack, range));
return new TitledCell(IvTranslations.get("reccomplex.gui.inventorygen.multi.count"), cell);
}
}
return null;
}
Aggregations