git-subtree-dir: H01 git-subtree-split: 8ca45da38c7fc420f4ab2047a41aca0867bf26d3
15 lines
325 B
Java
15 lines
325 B
Java
package h01.template;
|
|
|
|
/**
|
|
* An interface that enables an object to be updated every n-th tick.
|
|
*/
|
|
public interface TickBased {
|
|
/**
|
|
* Returns the number of ticks between two updates.
|
|
*
|
|
* @return the number of ticks between two updates
|
|
*/
|
|
default int getUpdateDelay() {
|
|
return 1;
|
|
}
|
|
}
|