Package net.minecraft.world.gen
Interface Spawner
- All Known Implementing Classes:
CatSpawner
,PhantomSpawner
,PillagerSpawner
,WanderingTraderManager
,ZombieSiegeManager
public interface Spawner
Handles spawning entities in a world.
A spawner is typically used to spawn entities within a special context, such as cats in a village or wandering traders.
- Mappings:
Namespace Name official bwb
intermediary net/minecraft/class_5304
named net/minecraft/world/gen/Spawner
-
Method Summary
Modifier and TypeMethodDescriptionint
spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.
-
Method Details
-
spawn
Spawns entities into a world.- Parameters:
spawnMonsters
- whether monsters should be spawnedspawnAnimals
- whether animals should be spawned- Returns:
- the number of entities spawned
- Mappings:
Namespace Name Mixin selector official a
Lbwb;a(Labr;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
-