Class PhantomSpawner

java.lang.Object
net.minecraft.world.gen.PhantomSpawner
All Implemented Interfaces:
Spawner

public class PhantomSpawner extends Object implements Spawner
Mappings:
Namespace Name
official cto
intermediary net/minecraft/class_2910
named net/minecraft/world/gen/PhantomSpawner
  • Field Details

    • ticksUntilNextSpawn

      private int ticksUntilNextSpawn
      Mappings:
      Namespace Name Mixin selector
      official a Lcto;a:I
      intermediary field_13244 Lnet/minecraft/class_2910;field_13244:I
      named ticksUntilNextSpawn Lnet/minecraft/world/gen/PhantomSpawner;ticksUntilNextSpawn:I
  • Constructor Details

    • PhantomSpawner

      public PhantomSpawner()
  • Method Details

    • spawn

      public int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
      Spawns entities into a world.
      Specified by:
      spawn in interface Spawner
      Parameters:
      spawnMonsters - whether monsters should be spawned
      spawnAnimals - whether animals should be spawned
      Returns:
      the number of entities spawned
      Mappings:
      Namespace Name Mixin selector
      official a Lbzq;a(Ladi;ZZ)I
      intermediary method_6445 Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I
      named spawn Lnet/minecraft/world/gen/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I