Interface MobSpawner

All Superinterfaces:
BlockEntity, CopyableDataHolder, DataHolder, DataHolder.Mutable, DataSerializable, Locatable, SerializableDataHolder, SerializableDataHolder.Mutable, Spawner, ValueContainer

public interface MobSpawner extends BlockEntity, Spawner
Represents a Monster Spawner.
  • Method Details

    • spawnEntityBatchImmediately

      void spawnEntityBatchImmediately(boolean force)
      Trigger an immediate spawn of a batch of entities.

      This will obey the restrictions of maximum nearby entities and player range unless the force flag is set.

      Parameters:
      force - Whether to ignore spawning restrictions