Interface Tickable

All Known Implementing Classes:
AbstractWindChargeEntity, BoatEntity, ChestBoatEntity, CommandBlockMinecartEntity, DefaultBlockMinecartEntity, EnderDragonEntity, EvokerFangsEntity, FireballEntity, FishingHookEntity, FurnaceMinecartEntity, GlowSquidEntity, ItemEntity, MinecartEntity, PigEntity, SnifferEntity, SpawnerMinecartEntity, SquidEntity, StriderEntity, ThrowableEggEntity, 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

    Modifier and Type
    Method
    Description
    default void
    This function gets called every tick at all times, even when the server requests that the game should be frozen.
    void
    This function gets called every game tick as long as the game tick loop isn't frozen.
  • 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.