Class VanillaEntityItemFrameItemHandler
java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.items.IItemHandler>
org.cyclops.commoncapabilities.modcompat.vanilla.capability.itemhandler.VanillaEntityItemFrameItemHandler
- All Implemented Interfaces:
net.neoforged.neoforge.items.IItemHandler
public class VanillaEntityItemFrameItemHandler
extends VanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.items.IItemHandler>
implements net.neoforged.neoforge.items.IItemHandler
An item handler for entity item frames that have an item handler.
-
Constructor Summary
ConstructorDescriptionVanillaEntityItemFrameItemHandler
(net.minecraft.world.entity.decoration.ItemFrame entity) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
extractItem
(int slot, int amount, boolean simulate) protected net.neoforged.neoforge.capabilities.ItemCapability
<net.neoforged.neoforge.items.IItemHandler, Void> int
getSlotLimit
(int slot) int
getSlots()
net.minecraft.world.item.ItemStack
getStackInSlot
(int slot) net.minecraft.world.item.ItemStack
insertItem
(int slot, net.minecraft.world.item.ItemStack stack, boolean simulate) boolean
isItemValid
(int slot, net.minecraft.world.item.ItemStack stack) Methods inherited from class org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemFrameCapabilityDelegator
getCapability, getCapability, getEntity, getItemStack, updateItemStack
-
Constructor Details
-
VanillaEntityItemFrameItemHandler
public VanillaEntityItemFrameItemHandler(net.minecraft.world.entity.decoration.ItemFrame entity)
-
-
Method Details
-
getCapabilityType
protected net.neoforged.neoforge.capabilities.ItemCapability<net.neoforged.neoforge.items.IItemHandler,Void> getCapabilityType()- Specified by:
getCapabilityType
in classVanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.items.IItemHandler>
-
getSlots
public int getSlots()- Specified by:
getSlots
in interfacenet.neoforged.neoforge.items.IItemHandler
-
getStackInSlot
@Nonnull public net.minecraft.world.item.ItemStack getStackInSlot(int slot) - Specified by:
getStackInSlot
in interfacenet.neoforged.neoforge.items.IItemHandler
-
insertItem
@Nonnull public net.minecraft.world.item.ItemStack insertItem(int slot, @Nonnull net.minecraft.world.item.ItemStack stack, boolean simulate) - Specified by:
insertItem
in interfacenet.neoforged.neoforge.items.IItemHandler
-
extractItem
@Nonnull public net.minecraft.world.item.ItemStack extractItem(int slot, int amount, boolean simulate) - Specified by:
extractItem
in interfacenet.neoforged.neoforge.items.IItemHandler
-
getSlotLimit
public int getSlotLimit(int slot) - Specified by:
getSlotLimit
in interfacenet.neoforged.neoforge.items.IItemHandler
-
isItemValid
public boolean isItemValid(int slot, @Nonnull net.minecraft.world.item.ItemStack stack) - Specified by:
isItemValid
in interfacenet.neoforged.neoforge.items.IItemHandler
-