use of ivorius.reccomplex.gui.table.cell.TableCellFloat in project RecurrentComplex by Ivorforce.
the class TableDataSourceInvGenSingleTag method cellForIndexInSegment.
@Override
public TableCell cellForIndexInSegment(GuiTable table, int index, int segment) {
if (segment == 0) {
if (index == 0) {
TableCellFloat cell = new TableCellFloat("itemCount", item.getItemChance(stack), 0, 1);
cell.setScale(Scales.pow(5));
cell.addPropertyConsumer(range -> item.setItemChance(stack, range));
return new TitledCell(IvTranslations.get("reccomplex.gui.inventorygen.single.chance"), cell);
}
}
return null;
}
Aggregations