Interface SpawnTick

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@NullMarked @AsOf("2.4.0") @FunctionalInterface public interface SpawnTick
A custom spawn tick handler.
Since:
2.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    tick(World world, boolean spawnEnemies)
    Called during the world's spawn tick.
  • Method Details

    • tick

      @AsOf("2.4.0") void tick(World world, boolean spawnEnemies)
      Called during the world's spawn tick.
      Parameters:
      world - the world being ticked
      spawnEnemies - whether hostile spawning is currently enabled for this tick
      Since:
      2.4.0