Klasse NegativeItemUtil
java.lang.Object
com.viaversion.viafabricplus.features.item.negative_item_count.NegativeItemUtil
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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().
-
Konstruktordetails
-
NegativeItemUtil
public NegativeItemUtil()
-
-
Methodendetails
-
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().- Parameter:
stack- The stack to get the count from- Gibt zurück:
- The actual amount of items in the stack
-