mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-25 14:24:40 +00:00
Some stuff
Api derpage apparently... Some new drills, and chainsaws. Started working on omnitools, but I got distracted. I NEED TEXTURES :(
This commit is contained in:
1 parent
f927d596d5
commit
104ecb66bb
196 files changed
+8231
-8092
No files matched your search
@@ -2,37 +2,35 @@ package ic2.api.energy.tile;
|
||||
|
||||
/**
|
||||
* Allows a tile entity (mostly a generator) to emit energy.
|
||||
*
|
||||
* <p/>
|
||||
* See ic2/api/energy/usage.txt for an overall description of the energy net api.
|
||||
*/
|
||||
public interface IEnergySource extends IEnergyEmitter {
|
||||
/**
|
||||
* Energy output provided by the source this tick.
|
||||
* This is typically Math.min(stored energy, max output/tick).
|
||||
*
|
||||
* @note Modifying the energy net from this method is disallowed.
|
||||
*
|
||||
* @return Energy offered this tick
|
||||
*/
|
||||
double getOfferedEnergy();
|
||||
/**
|
||||
* Energy output provided by the source this tick.
|
||||
* This is typically Math.min(stored energy, max output/tick).
|
||||
*
|
||||
* @return Energy offered this tick
|
||||
* @note Modifying the energy net from this method is disallowed.
|
||||
*/
|
||||
double getOfferedEnergy();
|
||||
|
||||
/**
|
||||
* Draw energy from this source's buffer.
|
||||
*
|
||||
* If the source doesn't have a buffer, this is a no-op.
|
||||
*
|
||||
* @param amount amount of EU to draw, may be negative
|
||||
*/
|
||||
void drawEnergy(double amount);
|
||||
/**
|
||||
* Draw energy from this source's buffer.
|
||||
* <p/>
|
||||
* If the source doesn't have a buffer, this is a no-op.
|
||||
*
|
||||
* @param amount amount of EU to draw, may be negative
|
||||
*/
|
||||
void drawEnergy(double amount);
|
||||
|
||||
/**
|
||||
* Determine the tier of this energy source.
|
||||
* 1 = LV, 2 = MV, 3 = HV, 4 = EV etc.
|
||||
*
|
||||
* @note Modifying the energy net from this method is disallowed.
|
||||
*
|
||||
* @return tier of this energy source
|
||||
*/
|
||||
int getSourceTier();
|
||||
/**
|
||||
* Determine the tier of this energy source.
|
||||
* 1 = LV, 2 = MV, 3 = HV, 4 = EV etc.
|
||||
*
|
||||
* @return tier of this energy source
|
||||
* @note Modifying the energy net from this method is disallowed.
|
||||
*/
|
||||
int getSourceTier();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user