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
An item handler wrapper for the shulker box in item form.
-
Constructor Summary
ConstructorDescriptionVanillaItemShulkerBoxItemHandler
(net.minecraft.world.item.ItemStack itemStack) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.core.NonNullList
<net.minecraft.world.item.ItemStack> int
getSlotLimit
(int slot) int
getSlots()
boolean
isItemValid
(int slot, net.minecraft.world.item.ItemStack stack) protected void
setItemList
(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks) Methods inherited from class org.cyclops.commoncapabilities.capability.itemhandler.ItemItemHandler
extractItem, getItemStack, getStackInSlot, insertItem, setStackInSlot
-
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 classItemItemHandler
-
setItemList
protected void setItemList(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks) - Specified by:
setItemList
in classItemItemHandler
-
getSlots
public int getSlots() -
getSlotLimit
public int getSlotLimit(int slot) -
isItemValid
public boolean isItemValid(int slot, @Nonnull net.minecraft.world.item.ItemStack stack)
-