Class WanderingTraderManager

java.lang.Object
net.minecraft.world.WanderingTraderManager
All Implemented Interfaces:
Spawner

public class WanderingTraderManager
extends Object
implements Spawner
  • Field Details

    • random

      private final Random random
    • properties

      private final ServerWorldProperties properties
    • spawnTimer

      private int spawnTimer
    • spawnDelay

      private int spawnDelay
    • spawnChance

      private int spawnChance
  • Constructor Details

  • Method Details

    • spawn

      public int spawn​(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
      Spawns entities into a world.
      Specified by:
      spawn in interface Spawner
      Parameters:
      spawnMonsters - whether monsters should be spawned
      spawnAnimals - whether animals should be spawned
      Returns:
      the number of entities spawned
    • method_18018

      private boolean method_18018​(ServerWorld serverWorld)
    • spawnLlama

      private void spawnLlama​(ServerWorld serverWorld, WanderingTraderEntity wanderingTraderEntity, int int2)
    • getNearbySpawnPos

      @Nullable private BlockPos getNearbySpawnPos​(WorldView worldView, BlockPos blockPos, int int2)
    • doesNotSuffocateAt

      private boolean doesNotSuffocateAt​(BlockView blockView, BlockPos blockPos)