Class VanillaEntityItemCapabilityDelegator<C>

java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemCapabilityDelegator<C>
Type Parameters:
C - The capability type.
Direct Known Subclasses:
VanillaEntityItemEnergyStorage, VanillaEntityItemFluidHandler, VanillaEntityItemItemHandler

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

    • VanillaEntityItemCapabilityDelegator

      public VanillaEntityItemCapabilityDelegator(net.minecraft.world.entity.item.ItemEntity entity)
  • Method Details

    • getEntity

      public net.minecraft.world.entity.item.ItemEntity 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()