Class ItemStackKey

java.lang.Object
dev.latvian.mods.kubejs.item.ItemStackKey

public class ItemStackKey extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    final net.minecraft.world.item.Item
     
    final net.minecraft.core.component.DataComponentPatch
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemStackKey(net.minecraft.world.item.Item item, net.minecraft.core.component.DataComponentPatch patch)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    of(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY

      public static ItemStackKey EMPTY
    • item

      public final net.minecraft.world.item.Item item
    • patch

      public final net.minecraft.core.component.DataComponentPatch patch
  • Constructor Details

    • ItemStackKey

      public ItemStackKey(net.minecraft.world.item.Item item, net.minecraft.core.component.DataComponentPatch patch)
  • Method Details

    • of

      public static ItemStackKey of(net.minecraft.world.item.ItemStack stack)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object