Class WanderingTraderManager

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

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

    • field_30631

      private static final int field_30631
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Lbjx;b:I
      intermediary field_30631 Lnet/minecraft/class_3990;field_30631:I
      named field_30631 Lnet/minecraft/world/WanderingTraderManager;field_30631:I
    • field_30630

      public static final int field_30630
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lbjx;a:I
      intermediary field_30630 Lnet/minecraft/class_3990;field_30630:I
      named field_30630 Lnet/minecraft/world/WanderingTraderManager;field_30630:I
    • field_30632

      private static final int field_30632
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lbjx;c:I
      intermediary field_30632 Lnet/minecraft/class_3990;field_30632:I
      named field_30632 Lnet/minecraft/world/WanderingTraderManager;field_30632:I
    • field_30633

      private static final int field_30633
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lbjx;d:I
      intermediary field_30633 Lnet/minecraft/class_3990;field_30633:I
      named field_30633 Lnet/minecraft/world/WanderingTraderManager;field_30633:I
    • field_30634

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

      private static final int field_30635
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official f Lbjx;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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official g Lbjx;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 Lbjx;h:Ljava/util/Random;
      intermediary field_17726 Lnet/minecraft/class_3990;field_17726:Ljava/util/Random;
      named random Lnet/minecraft/world/WanderingTraderManager;random:Ljava/util/Random;
    • properties

      private final ServerWorldProperties properties
      Mappings:
      Namespace Name Mixin selector
      official i Lbjx;i:Ldih;
      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 Lbjx;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 Lbjx;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 Lbjx;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> Lbjx;<init>(Ldih;)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 Lbwb;a(Labr;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
    • trySpawn

      private boolean trySpawn(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbjx;a(Labr;)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 Lbjx;a(Labr;Lbjw;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 Lbjx;a(Lbws;Lgg;I)Lgg;
      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 Lbjx;a(Lbvt;Lgg;)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