mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-10-01 05:11:05 +02:00
27 lines
703 B
Java
27 lines
703 B
Java
package cofh.api.energy;
|
|
|
|
import net.minecraft.util.EnumFacing;
|
|
|
|
/**
|
|
* Implement this interface on Tile Entities which should handle energy, generally storing it in one or more internal {@link IEnergyStorage} objects.
|
|
* <p>
|
|
* A reference implementation is provided {@link TileEnergyHandler}.
|
|
* <p>
|
|
* Note that {@link IEnergyReceiver} and {@link IEnergyProvider} are extensions of this.
|
|
*
|
|
* @author King Lemming
|
|
*
|
|
*/
|
|
public interface IEnergyHandler extends IEnergyConnection {
|
|
|
|
/**
|
|
* Returns the amount of energy currently stored.
|
|
*/
|
|
int getEnergyStored(EnumFacing from);
|
|
|
|
/**
|
|
* Returns the maximum amount of energy that can be stored.
|
|
*/
|
|
int getMaxEnergyStored(EnumFacing from);
|
|
|
|
}
|