Package net.minecraft.world.gen
Class PhantomSpawner
java.lang.Object
net.minecraft.world.gen.PhantomSpawner
- All Implemented Interfaces:
Spawner
- Mappings:
Namespace Name official cqeintermediary net/minecraft/class_2910named net/minecraft/world/gen/PhantomSpawner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)Spawns entities into a world.
-
Field Details
-
ticksUntilNextSpawn
private int ticksUntilNextSpawn- Mappings:
Namespace Name Mixin selector official aLcqe;a:Iintermediary field_13244Lnet/minecraft/class_2910;field_13244:Inamed ticksUntilNextSpawnLnet/minecraft/world/gen/PhantomSpawner;ticksUntilNextSpawn:I
-
-
Constructor Details
-
PhantomSpawner
public PhantomSpawner()
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawnin interfaceSpawner- Parameters:
spawnMonsters- whether monsters should be spawnedspawnAnimals- whether animals should be spawned- Returns:
- the number of entities spawned
- Mappings:
Namespace Name Mixin selector official aLbwb;a(Labr;ZZ)Iintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Inamed spawnLnet/minecraft/world/gen/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
-