Class PhantomSpawner

java.lang.Object
net.minecraft.world.spawner.PhantomSpawner
All Implemented Interfaces:
SpecialSpawner

public class PhantomSpawner extends Object implements SpecialSpawner
Mappings:
Namespace Name
named net/minecraft/world/spawner/PhantomSpawner
intermediary net/minecraft/class_2910
official dzk
  • Field Details

    • cooldown

      private int cooldown
      Mappings:
      Namespace Name Mixin selector
      named cooldown Lnet/minecraft/world/spawner/PhantomSpawner;cooldown:I
      intermediary field_13244 Lnet/minecraft/class_2910;field_13244:I
      official a Ldzk;a: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 SpecialSpawner
      Parameters:
      spawnMonsters - whether monsters should be spawned
      spawnAnimals - whether animals should be spawned
      Returns:
      the number of entities spawned
      Mappings:
      Namespace Name Mixin selector
      named spawn Lnet/minecraft/world/spawner/SpecialSpawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
      intermediary method_6445 Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I
      official a Ldcj;a(Laqu;ZZ)I