Class EmptyInTankTickAction<T extends BlockEntityTickingTankInventory<T>>

java.lang.Object
org.cyclops.evilcraft.blockentity.tickaction.EmptyInTankTickAction<T>
Type Parameters:
T - Extension of BlockEntityTickingTankInventory that has a tank.
All Implemented Interfaces:
ITickAction<T>
Direct Known Subclasses:
EmptyFluidContainerInTankTickAction

public abstract class EmptyInTankTickAction<T extends BlockEntityTickingTankInventory<T>> extends Object implements ITickAction<T>
Abstract ITickAction for emptying items in tanks.
  • Field Details

    • MB_PER_TICK

      protected static final int MB_PER_TICK
  • Constructor Details

    • EmptyInTankTickAction

      public EmptyInTankTickAction()
  • Method Details

    • canTick

      public boolean canTick(T tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick)
      Description copied from interface: ITickAction
      If this action can tick for the given conditions.
      Specified by:
      canTick in interface ITickAction<T extends BlockEntityTickingTankInventory<T>>
      Parameters:
      tile - The tile entity that ticks.
      itemStack - The ItemStack that is in the slot for which this ticker runs.
      slot - The slot ID for the ticker.
      tick - The current tick.
      Returns:
      If the action can tick for the given parameters.