Interface IIngredientChannelInsertPreConsumer<T>
public interface IIngredientChannelInsertPreConsumer<T>
Allows (partially) consuming an ingredient before it is inserted into the network.
-
Method Summary
-
Method Details
-
insert
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.
-