Class WanderingTraderManager

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

public class WanderingTraderManager extends Object implements SpecialSpawner
Mappings:
Namespace Name
named net/minecraft/world/WanderingTraderManager
intermediary net/minecraft/class_3990
official cmr
  • Field Details

    • DEFAULT_SPAWN_TIMER

      private static final int DEFAULT_SPAWN_TIMER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SPAWN_TIMER Lnet/minecraft/world/WanderingTraderManager;DEFAULT_SPAWN_TIMER:I
      intermediary field_30631 Lnet/minecraft/class_3990;field_30631:I
      official b Lcmr;b:I
    • DEFAULT_SPAWN_DELAY

      public static final int DEFAULT_SPAWN_DELAY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SPAWN_DELAY Lnet/minecraft/world/WanderingTraderManager;DEFAULT_SPAWN_DELAY:I
      intermediary field_30630 Lnet/minecraft/class_3990;field_30630:I
      official a Lcmr;a:I
    • MIN_SPAWN_CHANCE

      private static final int MIN_SPAWN_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MIN_SPAWN_CHANCE Lnet/minecraft/world/WanderingTraderManager;MIN_SPAWN_CHANCE:I
      intermediary field_30632 Lnet/minecraft/class_3990;field_30632:I
      official c Lcmr;c:I
    • MAX_SPAWN_CHANCE

      private static final int MAX_SPAWN_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_SPAWN_CHANCE Lnet/minecraft/world/WanderingTraderManager;MAX_SPAWN_CHANCE:I
      intermediary field_30633 Lnet/minecraft/class_3990;field_30633:I
      official d Lcmr;d:I
    • DEFAULT_SPAWN_CHANCE

      private static final int DEFAULT_SPAWN_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SPAWN_CHANCE Lnet/minecraft/world/WanderingTraderManager;DEFAULT_SPAWN_CHANCE:I
      intermediary field_30634 Lnet/minecraft/class_3990;field_30634:I
      official e Lcmr;e:I
    • field_30635

      private static final int field_30635
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30635 Lnet/minecraft/world/WanderingTraderManager;field_30635:I
      intermediary field_30635 Lnet/minecraft/class_3990;field_30635:I
      official f Lcmr;f:I
    • field_30636

      private static final int field_30636
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30636 Lnet/minecraft/world/WanderingTraderManager;field_30636:I
      intermediary field_30636 Lnet/minecraft/class_3990;field_30636:I
      official g Lcmr;g:I
    • random

      private final Random random
      Mappings:
      Namespace Name Mixin selector
      named random Lnet/minecraft/world/WanderingTraderManager;random:Lnet/minecraft/util/math/random/Random;
      intermediary field_17726 Lnet/minecraft/class_3990;field_17726:Lnet/minecraft/class_5819;
      official h Lcmr;h:Layw;
    • properties

      private final ServerWorldProperties properties
      Mappings:
      Namespace Name Mixin selector
      named properties Lnet/minecraft/world/WanderingTraderManager;properties:Lnet/minecraft/world/level/ServerWorldProperties;
      intermediary field_24387 Lnet/minecraft/class_3990;field_24387:Lnet/minecraft/class_5268;
      official i Lcmr;i:Lerk;
    • spawnTimer

      private int spawnTimer
      Mappings:
      Namespace Name Mixin selector
      named spawnTimer Lnet/minecraft/world/WanderingTraderManager;spawnTimer:I
      intermediary field_17728 Lnet/minecraft/class_3990;field_17728:I
      official j Lcmr;j:I
    • spawnDelay

      private int spawnDelay
      Mappings:
      Namespace Name Mixin selector
      named spawnDelay Lnet/minecraft/world/WanderingTraderManager;spawnDelay:I
      intermediary field_17729 Lnet/minecraft/class_3990;field_17729:I
      official k Lcmr;k:I
    • spawnChance

      private int spawnChance
      Mappings:
      Namespace Name Mixin selector
      named spawnChance Lnet/minecraft/world/WanderingTraderManager;spawnChance:I
      intermediary field_17730 Lnet/minecraft/class_3990;field_17730:I
      official l Lcmr;l:I
  • Constructor Details

    • WanderingTraderManager

      public WanderingTraderManager(ServerWorldProperties properties)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/WanderingTraderManager;<init>(Lnet/minecraft/world/level/ServerWorldProperties;)V
      intermediary <init> Lnet/minecraft/class_3990;<init>(Lnet/minecraft/class_5268;)V
      official <init> Lcmr;<init>(Lerk;)V
  • Method Details

    • spawn

      public int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
      Spawns entities into a world.
      Specified by:
      spawn in interface SpecialSpawner
      Parameters:
      spawnMonsters - whether monsters should be spawned
      spawnAnimals - whether animals should be spawned
      Returns:
      the number of entities spawned
      Mappings:
      Namespace Name Mixin selector
      named spawn Lnet/minecraft/world/spawner/SpecialSpawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
      intermediary method_6445 Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I
      official a Ldcj;a(Laqu;ZZ)I
    • trySpawn

      private boolean trySpawn(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named trySpawn Lnet/minecraft/world/WanderingTraderManager;trySpawn(Lnet/minecraft/server/world/ServerWorld;)Z
      intermediary method_18018 Lnet/minecraft/class_3990;method_18018(Lnet/minecraft/class_3218;)Z
      official a Lcmr;a(Laqu;)Z
    • spawnLlama

      private void spawnLlama(ServerWorld world, WanderingTraderEntity wanderingTrader, int range)
      Mappings:
      Namespace Name Mixin selector
      named spawnLlama Lnet/minecraft/world/WanderingTraderManager;spawnLlama(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/WanderingTraderEntity;I)V
      intermediary method_18016 Lnet/minecraft/class_3990;method_18016(Lnet/minecraft/class_3218;Lnet/minecraft/class_3989;I)V
      official a Lcmr;a(Laqu;Lcmq;I)V
    • getNearbySpawnPos

      @Nullable private @Nullable BlockPos getNearbySpawnPos(WorldView world, BlockPos pos, int range)
      Mappings:
      Namespace Name Mixin selector
      named getNearbySpawnPos Lnet/minecraft/world/WanderingTraderManager;getNearbySpawnPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/util/math/BlockPos;
      intermediary method_18017 Lnet/minecraft/class_3990;method_18017(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2338;
      official a Lcmr;a(Ldcz;Ljd;I)Ljd;
    • doesNotSuffocateAt

      private boolean doesNotSuffocateAt(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named doesNotSuffocateAt Lnet/minecraft/world/WanderingTraderManager;doesNotSuffocateAt(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_23279 Lnet/minecraft/class_3990;method_23279(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      official a Lcmr;a(Ldcc;Ljd;)Z