Class ItemExtractableProjectileEntity

java.lang.Object
alexiil.mc.lib.attributes.item.entity.ItemExtractableProjectileEntity
All Implemented Interfaces:
ItemExtractable

public class ItemExtractableProjectileEntity extends Object implements ItemExtractable
  • Constructor Details

    • ItemExtractableProjectileEntity

      public ItemExtractableProjectileEntity(net.minecraft.entity.projectile.ProjectileEntity entity)
  • Method Details

    • attemptExtraction

      public net.minecraft.item.ItemStack attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
      Description copied from interface: ItemExtractable
      Attempt to extract *any* ItemStack from this that matches the given ItemFilter.
      Specified by:
      attemptExtraction in interface ItemExtractable
      maxAmount - The maximum number of items that can be extracted. Negative numbers throw an exception.
      simulation - If Simulation.SIMULATE then this should return the same result that a call with Simulation.ACTION would do, but without modifying anything else.
      Returns:
      A new, independent ItemStack that was extracted.