Class NegativeItemUtil
java.lang.Object
com.viaversion.viafabricplus.features.item.negative_item_count.NegativeItemUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetCount(net.minecraft.world.item.ItemStack stack) Returns the actual amount of items in the stack, versions older or equal to 1.10 can have negative stack sizes which are not represented byItemStack.getCount().
-
Constructor Details
-
NegativeItemUtil
public NegativeItemUtil()
-
-
Method Details
-
getCount
public static int getCount(net.minecraft.world.item.ItemStack stack) Returns the actual amount of items in the stack, versions older or equal to 1.10 can have negative stack sizes which are not represented byItemStack.getCount().- Parameters:
stack- The stack to get the count from- Returns:
- The actual amount of items in the stack
-