public class ItemUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ItemUtils.ItemStacksMerger
Utility class to help merge
itemStacks . |
static class |
ItemUtils.ItemStackSplitter
Utility class to help split an
ItemStack . |
Modifier and Type | Field and Description |
---|---|
static int |
FULL_STACK
Defines a full stack amount to process.
|
static int |
HALF_STACK
Defines a half stack amount to process.
|
Constructor and Description |
---|
ItemUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areItemStacksStackable(net.minecraft.item.ItemStack stack1,
net.minecraft.item.ItemStack stack2)
Checks whether two
itemStacks can be stacked together |
public static final int FULL_STACK
public static final int HALF_STACK
public static boolean areItemStacksStackable(net.minecraft.item.ItemStack stack1, net.minecraft.item.ItemStack stack2)
itemStacks
can be stacked togetherstack1
- first itemStackstack2
- second itemStack