Package org.geysermc.geyser.entity.type
Interface Tickable
- All Known Implementing Classes:
AbstractWindChargeEntity,BoatEntity,ChestBoatEntity,EnderDragonEntity,EvokerFangsEntity,FireballEntity,FishingHookEntity,GlowSquidEntity,ItemEntity,PigEntity,SnifferEntity,SquidEntity,StriderEntity,ThrowableEntity,ThrowableItemEntity,ThrownPotionEntity,TNTEntity,WardenEntity,WitherSkullEntity
public interface Tickable
Implemented onto anything that should have code ran every Minecraft tick.
By default, the Java server runs at 20 TPS, 50 milliseconds for each tick.
-
Method Summary
-
Method Details
-
drawTick
default void drawTick()This function gets called every tick at all times, even when the server requests that the game should be frozen. This should be used for updating things that are always client side updated on Java, regardless of if the server is frozen or not. -
tick
void tick()This function gets called every game tick as long as the game tick loop isn't frozen.
-