Class VanillaEntityItemFrameCapabilityDelegator<C>

java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemFrameCapabilityDelegator<C>
Type Parameters:
C - The capability type.
Direct Known Subclasses:
VanillaEntityItemFrameEnergyStorage, VanillaEntityItemFrameFluidHandler, VanillaEntityItemFrameItemHandler

public abstract class VanillaEntityItemFrameCapabilityDelegator<C> extends Object
An abstract capability capability delegator from entity item frame to inner itemstack.
  • Constructor Details

    • VanillaEntityItemFrameCapabilityDelegator

      public VanillaEntityItemFrameCapabilityDelegator(net.minecraft.world.entity.decoration.ItemFrame entity)
  • Method Details

    • getEntity

      public net.minecraft.world.entity.decoration.ItemFrame getEntity()
    • getItemStack

      protected net.minecraft.world.item.ItemStack getItemStack()
    • updateItemStack

      protected void updateItemStack(net.minecraft.world.item.ItemStack itemStack)
    • getCapabilityType

      protected abstract net.neoforged.neoforge.capabilities.ItemCapability<C,Void> getCapabilityType()
    • getCapability

      protected Optional<C> getCapability(net.minecraft.world.item.ItemStack itemStack)
    • getCapability

      protected Optional<C> getCapability()