接口 Spawner

  • 所有已知实现类:
    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 bvd
    intermediary net/minecraft/class_5304
    named net/minecraft/world/gen/Spawner
    • 方法详细资料

      • spawn

        int spawn​(ServerWorld world,
                  boolean spawnMonsters,
                  boolean spawnAnimals)
        Spawns entities into a world.
        参数:
        spawnMonsters - whether monsters should be spawned
        spawnAnimals - whether animals should be spawned
        返回:
        the number of entities spawned
        Mappings:
        Namespace Name Mixin selector
        official a Lbvd;a(Labj;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