Search in sources :

Example 1 with SeedStorageSlot

use of com.infinityraider.agricraft.tiles.storage.SeedStorageSlot in project AgriCraft by AgriCraft.

the class GuiSeedStorageBase method initSeedSlots.

private void initSeedSlots() {
    getActiveSeed();
    this.activeSeeds.clear();
    List<SeedStorageSlot> list = this.getContainer().getSeedSlots(this.activeSeed);
    if (list != null) {
        this.sortByStat(list, sortMethod);
        for (int i = scrollPositionHorizontal; i < Math.min(list.size(), scrollPositionHorizontal + maxHorSlots); i++) {
            SeedStorageSlot slot = list.get(i);
            StorageElement stats = new StorageElement(slot.getId(), slot.count, slot.getSeed());
        //activeSeeds.add(new GuiComponent<>(stats, seedSlotButtonOffset_X + (i - scrollPositionHorizontal) * 16, seedSlotButtonOffset_Y, 16, 16));
        }
    }
}
Also used : SeedStorageSlot(com.infinityraider.agricraft.tiles.storage.SeedStorageSlot)

Aggregations

SeedStorageSlot (com.infinityraider.agricraft.tiles.storage.SeedStorageSlot)1