Package net.minecraft.world.spawner
Interface Spawner
- All Known Implementing Classes:
CatSpawner
,PatrolSpawner
,PhantomSpawner
,WanderingTraderManager
,ZombieSiegeManager
public interface Spawner
Spawns 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.
This is different from
the mob spawner logic
which is used for
,
or the structure spawn conditions (such as guardians) which is defined in
invalid @link
the spawner block
.
However, cats in swamp huts are spawned in both invalid @link
net.minecraft.world.gen.chunk.ChunkGeneratorSettings#getEntitySpawnList
CatSpawner
and
the normal structure spawning.
- Mappings:
Namespace Name official cai
intermediary net/minecraft/class_5304
named net/minecraft/world/spawner/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
Lcai;a(Ladw;ZZ)I
intermediary method_6445
Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I
named spawn
Lnet/minecraft/world/spawner/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
-