Package dev.jaxydog.astral.mixin
Class ItemStackMixin
java.lang.Object
dev.jaxydog.astral.mixin.ItemStackMixin
- All Implemented Interfaces:
AstralItemStack
Implements the
AstralItemStack interface.- Since:
- 1.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.item.ItemStackastral$copyWithItemStack(net.minecraft.item.Item item) Copies this stack, and swaps out the inner item.voidastral$setItem(net.minecraft.item.Item item) Sets the stack's item.
-
Constructor Details
-
ItemStackMixin
public ItemStackMixin()
-
-
Method Details
-
astral$setItem
public void astral$setItem(net.minecraft.item.Item item) Description copied from interface:AstralItemStackSets the stack's item.- Specified by:
astral$setItemin interfaceAstralItemStack- Parameters:
item- The new item.
-
astral$copyWithItemStack
public net.minecraft.item.ItemStack astral$copyWithItemStack(net.minecraft.item.Item item) Description copied from interface:AstralItemStackCopies this stack, and swaps out the inner item.- Specified by:
astral$copyWithItemStackin interfaceAstralItemStack- Parameters:
item- The new item.- Returns:
- The copied stack.
-