Interface IndexModifier<T extends Resource>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IndexModifier<T extends Resource>
Represents a function to directly mutate the resource and amount at a specific index of a ResourceHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(int index, T resource, int amount)
    Overrides the resource and amount at the given index.
  • Method Details

    • set

      void set(int index, T resource, int amount)
      Overrides the resource and amount at the given index.
      Parameters:
      index - The index to set the resource at.
      resource - The resource to set.
      amount - The amount of the resource to set.