Package codechicken.lib.inventory
Class InventoryRange
java.lang.Object
codechicken.lib.inventory.InventoryRange
Inventory wrapper for unified ISided/IInventory access
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInventoryRange(net.minecraft.world.Container inv) InventoryRange(net.minecraft.world.Container inv, int fslot, int lslot) InventoryRange(net.minecraft.world.Container inv, InventoryRange access) InventoryRange(net.minecraft.world.Container inv, net.minecraft.core.Direction side) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExtractItem(int slot, net.minecraft.world.item.ItemStack item) booleancanInsertItem(int slot, net.minecraft.world.item.ItemStack item) intlastSlot()
-
Field Details
-
inv
public final net.minecraft.world.Container inv -
face
@Nullable public final @Nullable net.minecraft.core.Direction face -
sidedInv
@Nullable public @Nullable net.minecraft.world.WorldlyContainer sidedInv -
slots
public final int[] slots
-
-
Constructor Details
-
InventoryRange
public InventoryRange(net.minecraft.world.Container inv, net.minecraft.core.Direction side) -
InventoryRange
public InventoryRange(net.minecraft.world.Container inv) -
InventoryRange
public InventoryRange(net.minecraft.world.Container inv, int fslot, int lslot) -
InventoryRange
-
-
Method Details
-
canInsertItem
public boolean canInsertItem(int slot, net.minecraft.world.item.ItemStack item) -
canExtractItem
public boolean canExtractItem(int slot, net.minecraft.world.item.ItemStack item) -
lastSlot
public int lastSlot()
-