Package net.minecraft.world
Class WanderingTraderManager
java.lang.Object
net.minecraft.world.WanderingTraderManager
- All Implemented Interfaces:
SpecialSpawner
- Mappings:
Namespace Name named net/minecraft/world/WanderingTraderManager
intermediary net/minecraft/class_3990
official cmf
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private final ServerWorldProperties
private final Random
private int
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
doesNotSuffocateAt
(BlockView world, BlockPos pos) getNearbySpawnPos
(WorldView world, BlockPos pos, int range) int
spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private void
spawnLlama
(ServerWorld world, WanderingTraderEntity wanderingTrader, int range) private boolean
trySpawn
(ServerWorld world)
-
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
Lcmf;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
Lcmf;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
Lcmf;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
Lcmf;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
Lcmf;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
Lcmf;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
Lcmf;g:I
-
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
Lcmf;h:Layo;
-
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
Lcmf;i:Leqp;
-
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
Lcmf;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
Lcmf;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
Lcmf;l:I
-
-
Constructor Details
-
WanderingTraderManager
- 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>
Lcmf;<init>(Leqp;)V
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawn
in interfaceSpecialSpawner
- Parameters:
spawnMonsters
- whether monsters should be spawnedspawnAnimals
- 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
Ldbt;a(Laqm;ZZ)I
-
trySpawn
- 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
Lcmf;a(Laqm;)Z
-
spawnLlama
- 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
Lcmf;a(Laqm;Lcme;I)V
-
getNearbySpawnPos
- 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
Lcmf;a(Ldcj;Lja;I)Lja;
-
doesNotSuffocateAt
- 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
Lcmf;a(Ldbm;Lja;)Z
-