use of meteordevelopment.meteorclient.mixininterface.ISlot in project meteor-client by MeteorDevelopment.
the class InventorySorter method generateActions.
private void generateActions() {
// Find all slots and sort them
List<MySlot> slots = new ArrayList<>();
for (Slot slot : screen.getScreenHandler().slots) {
if (getInvPart(slot) == originInvPart)
slots.add(new MySlot(((ISlot) slot).getId(), slot.getStack()));
}
slots.sort(Comparator.comparingInt(value -> value.id));
// Generate actions
generateStackingActions(slots);
generateSortingActions(slots);
}
Aggregations