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
An abstract capability capability delegator from entity item to inner itemstack.
-
Constructor Summary
ConstructorDescriptionVanillaEntityItemCapabilityDelegator
(net.minecraft.world.entity.item.ItemEntity entity) -
Method Summary
Modifier and TypeMethodDescriptiongetCapability
(net.minecraft.world.item.ItemStack itemStack) net.minecraft.world.entity.item.ItemEntity
protected net.minecraft.world.item.ItemStack
protected void
updateItemStack
(net.minecraft.world.item.ItemStack 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
-
getCapability
-
getCapability
-