Interface BotariumEnergyItem<T extends EnergyContainer & Updatable>
- Type Parameters:
T- The type of energy storage container. Botarium provides a default implementation for this withWrappedItemEnergyContainer.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface that represents an item that can provide an energy storage container.
-
Method Summary
Modifier and TypeMethodDescriptiongetEnergyStorage(net.minecraft.world.item.ItemStack holder) Retrieves the energy storage container for the given holder.
-
Method Details
-
getEnergyStorage
Retrieves the energy storage container for the given holder.- Parameters:
holder- The holder item stack.- Returns:
- The energy storage container.
-