Interface BotariumEnergyItem<T extends EnergyContainer & Updatable>

Type Parameters:
T - The type of energy storage container. Botarium provides a default implementation for this with WrappedItemEnergyContainer.
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 BotariumEnergyItem<T extends EnergyContainer & Updatable>
Functional interface that represents an item that can provide an energy storage container.
  • Method Summary

    Modifier and Type
    Method
    Description
    getEnergyStorage(net.minecraft.world.item.ItemStack holder)
    Retrieves the energy storage container for the given holder.
  • Method Details

    • getEnergyStorage

      T getEnergyStorage(net.minecraft.world.item.ItemStack holder)
      Retrieves the energy storage container for the given holder.
      Parameters:
      holder - The holder item stack.
      Returns:
      The energy storage container.