public class InventoryHelper
extends java.lang.Object
| Constructor and Description |
|---|
InventoryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
addStack(net.minecraft.inventory.Container container,
java.util.Collection<java.lang.Integer> slotIndexes,
net.minecraft.item.ItemStack stack,
boolean doAdd) |
static net.minecraft.inventory.Slot |
getSlotWithStack(net.minecraft.inventory.Container container,
java.lang.Iterable<java.lang.Integer> slotNumbers,
net.minecraft.item.ItemStack itemStack)
Get the slot which contains a specific itemStack.
|
public static int addStack(net.minecraft.inventory.Container container,
java.util.Collection<java.lang.Integer> slotIndexes,
net.minecraft.item.ItemStack stack,
boolean doAdd)
@Nullable
public static net.minecraft.inventory.Slot getSlotWithStack(net.minecraft.inventory.Container container,
java.lang.Iterable<java.lang.Integer> slotNumbers,
net.minecraft.item.ItemStack itemStack)
container - the container to searchslotNumbers - the slots in the container to searchitemStack - the itemStack to find