Class InventoryItemStackTransaction
java.lang.Object
team.lodestar.lodestone.modules.toolkit.inventory.InventoryItemStackTransaction
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInventoryItemStackTransaction(net.minecraft.world.item.ItemStack original, net.minecraft.world.item.ItemStack updated, int slot) -
Method Summary
Modifier and TypeMethodDescriptionintgetExchangedCount(int clamp) net.minecraft.world.item.ItemStacknet.minecraft.world.item.ItemStackintgetSlot()net.minecraft.world.item.ItemStackunchanged(net.minecraft.world.item.ItemStack stack, int slot) updated(net.minecraft.world.item.ItemStack original, net.minecraft.world.item.ItemStack updated, int slot) boolean
-
Field Details
-
EMPTY
-
-
Constructor Details
-
InventoryItemStackTransaction
protected InventoryItemStackTransaction(net.minecraft.world.item.ItemStack original, net.minecraft.world.item.ItemStack updated, int slot)
-
-
Method Details
-
unchanged
public static InventoryItemStackTransaction unchanged(net.minecraft.world.item.ItemStack stack, int slot) -
updated
public static InventoryItemStackTransaction updated(net.minecraft.world.item.ItemStack original, net.minecraft.world.item.ItemStack updated, int slot) -
getOriginal
public net.minecraft.world.item.ItemStack getOriginal() -
getUpdated
public net.minecraft.world.item.ItemStack getUpdated() -
getNonEmpty
public net.minecraft.world.item.ItemStack getNonEmpty() -
getSlot
public int getSlot() -
getExchangedCount
public int getExchangedCount(int clamp) -
wasSuccessful
public boolean wasSuccessful()
-