Minestom/src/main/java/net/minestom/server/Tickable.java

15 lines
265 B
Java
Raw Normal View History

2021-03-11 20:54:30 +01:00
package net.minestom.server;
2021-03-21 15:55:45 +01:00
/**
* Represents an element which is ticked at a regular interval.
*/
2021-03-11 20:54:30 +01:00
public interface Tickable {
2021-03-21 15:55:45 +01:00
/**
* Ticks this element.
2021-03-21 15:55:45 +01:00
*
* @param time the time of the tick in milliseconds
*/
2021-03-11 20:54:30 +01:00
void tick(long time);
}