mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Merge branch 'development' into 1.8.9
Huge merge with 202 conflicts, hopefully not *too* broken.
This commit is contained in:
commit
84336ec4d1
571 files changed
+10295
-4773
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package cofh.api.energy;
|
||||
|
||||
import net.minecraft.util.EnumFacing;
|
||||
|
||||
/** Implement this interface on Tile Entities which should provide energy, generally storing it in one or more internal
|
||||
* {@link IEnergyStorage} objects.
|
||||
* <p>
|
||||
* A reference implementation is provided {@link TileEnergyHandler}.
|
||||
*
|
||||
* @author King Lemming */
|
||||
public interface IEnergyProvider extends IEnergyConnection {
|
||||
|
||||
/** Remove energy from an IEnergyProvider, internal distribution is left entirely to the IEnergyProvider.
|
||||
*
|
||||
* @param from Orientation the energy is extracted from.
|
||||
* @param maxExtract Maximum amount of energy to extract.
|
||||
* @param simulate If TRUE, the extraction will only be simulated.
|
||||
* @return Amount of energy that was (or would have been, if simulated) extracted. */
|
||||
int extractEnergy(EnumFacing from, int maxExtract, boolean simulate);
|
||||
|
||||
/** 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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user