Class WanderingTraderManager

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

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

    • DEFAULT_SPAWN_TIMER

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

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

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

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

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

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

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

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

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

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

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

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

    • WanderingTraderManager

      public WanderingTraderManager(ServerWorldProperties properties)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbo;<init>(Lecl;)V
      intermediary <init> Lnet/minecraft/class_3990;<init>(Lnet/minecraft/class_5268;)V
      named <init> Lnet/minecraft/world/WanderingTraderManager;<init>(Lnet/minecraft/world/level/ServerWorldProperties;)V
  • 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
      Mappings:
      Namespace Name Mixin selector
      official a Lcpi;a(Lakq;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
    • trySpawn

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

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

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

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