Skip to content

Commit

Permalink
Create VirtualInventory.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab125 committed Jan 19, 2025
1 parent 5c02ca0 commit 5ca99b6
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package xyz.violaflower.legacy_tweaks.client.gui.extention;

import net.minecraft.world.inventory.Slot;

public interface VirtualInventory extends Iterable<Slot> {
// from 0 to 36
Slot getSlot(int slot);
// from 0 to 27
Slot getInventorySlot(int slot);
// from 0 to 9
Slot getHotbarSlot(int slot);
default Iterable<Slot> iterateSlots() { return this; }
Iterable<Slot> iterateInventorySlots();
Iterable<Slot> iterateHotbarSlots();
}

0 comments on commit 5ca99b6

Please sign in to comment.