Interface AstralItemStack

All Known Implementing Classes:
ItemStackMixin

public interface AstralItemStack
Provides extensions to the ItemStack class.
Since:
1.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.item.ItemStack
    astral$copyWithItemStack(net.minecraft.item.Item item)
    Copies this stack, and swaps out the inner item.
    void
    astral$setItem(net.minecraft.item.Item item)
    Sets the stack's item.
  • Method Details

    • astral$setItem

      void astral$setItem(net.minecraft.item.Item item)
      Sets the stack's item.
      Parameters:
      item - The new item.
      Since:
      1.4.0
    • astral$copyWithItemStack

      net.minecraft.item.ItemStack astral$copyWithItemStack(net.minecraft.item.Item item)
      Copies this stack, and swaps out the inner item.
      Parameters:
      item - The new item.
      Returns:
      The copied stack.
      Since:
      1.4.0