Class VanillaItemShulkerBoxItemHandler

java.lang.Object
org.cyclops.commoncapabilities.capability.itemhandler.ItemItemHandler
org.cyclops.commoncapabilities.modcompat.vanilla.capability.itemhandler.VanillaItemShulkerBoxItemHandler
All Implemented Interfaces:
net.neoforged.neoforge.items.IItemHandler, net.neoforged.neoforge.items.IItemHandlerModifiable

public class VanillaItemShulkerBoxItemHandler extends ItemItemHandler
An item handler wrapper for the shulker box in item form.
  • Constructor Details

    • VanillaItemShulkerBoxItemHandler

      public VanillaItemShulkerBoxItemHandler(net.minecraft.world.item.ItemStack itemStack)
  • Method Details

    • getItemList

      protected net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getItemList()
      Specified by:
      getItemList in class ItemItemHandler
    • setItemList

      protected void setItemList(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks)
      Specified by:
      setItemList in class ItemItemHandler
    • getSlots

      public int getSlots()
    • getSlotLimit

      public int getSlotLimit(int slot)
    • isItemValid

      public boolean isItemValid(int slot, @Nonnull net.minecraft.world.item.ItemStack stack)