Interface IIngredientChannelInsertPreConsumer<T>


public interface IIngredientChannelInsertPreConsumer<T>
Allows (partially) consuming an ingredient before it is inserted into the network.
  • Method Summary

    Modifier and Type
    Method
    Description
    insert(int channel, T ingredient, boolean simulate)
    Called before an ingredient is inserted into the network.
  • Method Details

    • insert

      T insert(int channel, @Nonnull T ingredient, boolean simulate)
      Called before an ingredient is inserted into the network. If nothing needs to be consumed, the same instance can be returned.
      Parameters:
      channel - The network channel.
      ingredient - The ingredient instance.
      simulate - Simulation mode or not.
      Returns:
      The remaining ingredient instance.