Class ItemStackStorage

java.lang.Object
net.fabricmc.fabric.api.transfer.v1.transaction.base.SnapshotParticipant<net.minecraft.world.item.ItemStack>
net.fabricmc.fabric.api.transfer.v1.item.base.SingleStackStorage
earth.terrarium.botarium.fabric.ItemStackStorage
All Implemented Interfaces:
Iterable<net.fabricmc.fabric.api.transfer.v1.storage.StorageView<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>>, net.fabricmc.fabric.api.transfer.v1.storage.base.SingleSlotStorage<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>, net.fabricmc.fabric.api.transfer.v1.storage.SlottedStorage<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>, net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>, net.fabricmc.fabric.api.transfer.v1.storage.StorageView<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext.CloseCallback, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext.OuterCloseCallback

public class ItemStackStorage extends net.fabricmc.fabric.api.transfer.v1.item.base.SingleStackStorage
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemStackStorage(net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.minecraft.world.item.ItemStack
     
    static net.fabricmc.fabric.api.transfer.v1.context.ContainerItemContext
    of(net.minecraft.world.item.ItemStack stack)
     
    protected void
    setStack(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class net.fabricmc.fabric.api.transfer.v1.item.base.SingleStackStorage

    canExtract, canInsert, createSnapshot, extract, getAmount, getCapacity, getCapacity, getResource, insert, isResourceBlank, readSnapshot, toString

    Methods inherited from class net.fabricmc.fabric.api.transfer.v1.transaction.base.SnapshotParticipant

    afterOuterClose, onClose, onFinalCommit, releaseSnapshot, updateSnapshots

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.base.SingleSlotStorage

    getSlot, getSlotCount, iterator

    Methods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.SlottedStorage

    getSlots

    Methods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.Storage

    getVersion, nonEmptyIterator, nonEmptyViews, supportsExtraction, supportsInsertion

    Methods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.StorageView

    getUnderlyingView
  • Constructor Details

    • ItemStackStorage

      public ItemStackStorage(net.minecraft.world.item.ItemStack stack)
  • Method Details

    • getStack

      protected net.minecraft.world.item.ItemStack getStack()
      Specified by:
      getStack in class net.fabricmc.fabric.api.transfer.v1.item.base.SingleStackStorage
    • setStack

      protected void setStack(net.minecraft.world.item.ItemStack stack)
      Specified by:
      setStack in class net.fabricmc.fabric.api.transfer.v1.item.base.SingleStackStorage
    • of

      public static net.fabricmc.fabric.api.transfer.v1.context.ContainerItemContext of(net.minecraft.world.item.ItemStack stack)