java.lang.Object
com.viaversion.viafabricplus.features.item.negative_item_count.NegativeItemUtil

public final class NegativeItemUtil extends Object
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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 by ItemStack.getCount().

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 by ItemStack.getCount().
      Parameter:
      stack - The stack to get the count from
      Gibt zurück:
      The actual amount of items in the stack