Remove gitmodules

Integrate api and lang into core
This commit is contained in:
thatsIch
2014-12-04 13:00:54 +01:00
parent d54cf458b6
commit ede5fb938b
243 changed files with 14227 additions and 9 deletions
@@ -0,0 +1,56 @@
package appeng.api.networking.ticking;
import appeng.api.networking.IGridNode;
/**
* Implement on IGridHosts which want to use AE's Network Ticking Feature.
*/
public interface IGridTickable
{
/**
* Important note regarding IGridTickables with more then one one node,
*
* If your IGridHost hosts multiple nodes, it may be on multiple grids, or
* its node may be present on the same grid multiple times, this is as
* designed, however if you choose to use the grid to tick these Hosts you
* must be aware that they they should probably pick a single node to tick
* for, and not tick for each node.
*
*/
/**
* You can return null, if you wish to tick using MC's ticking mechanism, or
* you can return a valid TickingRequest to tell AE a guide for which type
* of responsiveness your device wants.
*
* this will be called for your tile any time your tile changes grids, this
* can happen at any time, so if your using the sleep feature you may wish
* to preserve your sleep, in the result of this method. or you can simply
* reset it.
*
* @return null or a valid new TickingRequest
*
*/
TickingRequest getTickingRequest(IGridNode node);
/**
* AE lets you adjust your tick rate based on the results of your tick, if
* your block as accomplished work you may wish to increase the ticking
* speed, if your block is idle you may wish to slow it down.
*
* Its up to you.
*
* Note: this is never called if you return null from getTickingRequest.
*
* @param TicksSinceLastCall
* the number of world ticks that were skipped since your last
* tick, you can use this to adjust speed of processing or adjust
* your tick rate.
*
* @return tick rate adjustment.
*
*/
TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall);
}