Interface INetworkIngredientsChannel<T,M>

All Superinterfaces:
org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<T,M>, Iterable<T>
All Known Implementing Classes:
IngredientChannelAdapter, IngredientChannelIndexed, IngredientChannelPositioned

public interface INetworkIngredientsChannel<T,M> extends org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<T,M>
  • Method Details

    • insert

      default T insert(@Nonnull T ingredient, @Nonnull T unclaimed, net.neoforged.neoforge.transfer.transaction.TransactionContext transaction)
      Insert an ingredient of which a part was already claimed before it reached this channel. This is needed when an ingredient is first offered to an insert pre-consumer outside of this channel, so that the pre-consumers of this channel can not claim that same part a second time.
      Parameters:
      ingredient - The ingredient to insert.
      unclaimed - The part of the ingredient that no insert pre-consumer has claimed yet.
      transaction - The current transaction.
      Returns:
      The ingredient that could not be inserted.
    • findNonFullPositions

      Iterable<PartPos> findNonFullPositions()
    • findAllPositions

      Iterable<PartPos> findAllPositions()
    • findNonEmptyPositions

      Iterable<PartPos> findNonEmptyPositions()
    • findMatchingPositions

      Iterable<PartPos> findMatchingPositions(@Nonnull T prototype, M matchFlags)