Package net.minecraft.world
Class WanderingTraderManager
java.lang.Object
net.minecraft.world.WanderingTraderManager
- All Implemented Interfaces:
Spawner
public class WanderingTraderManager extends Object implements Spawner
- Mappings:
Namespace Name official bhf
intermediary net/minecraft/class_3990
named net/minecraft/world/WanderingTraderManager
-
Field Summary
Fields Modifier and Type Field Description private ServerWorldProperties
properties
private Random
random
private int
spawnChance
private int
spawnDelay
private int
spawnTimer
-
Constructor Summary
Constructors Constructor Description WanderingTraderManager(ServerWorldProperties properties)
-
Method Summary
Modifier and Type Method Description private boolean
doesNotSuffocateAt(BlockView world, BlockPos pos)
private BlockPos
getNearbySpawnPos(WorldView world, BlockPos pos, int int2)
private boolean
method_18018(ServerWorld serverWorld)
int
spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
Spawns entities into a world.private void
spawnLlama(ServerWorld world, WanderingTraderEntity wanderingTrader, int int2)
-
Field Details
-
random
- Mappings:
Namespace Name Mixin selector official a
Lbhf;a: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
- Mappings:
Namespace Name Mixin selector official b
Lbhf;b:Ldea;
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 c
Lbhf;c: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 d
Lbhf;d: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 e
Lbhf;e:I
intermediary field_17730
Lnet/minecraft/class_3990;field_17730:I
named spawnChance
Lnet/minecraft/world/WanderingTraderManager;spawnChance:I
-
-
Constructor Details
-
WanderingTraderManager
- Mappings:
Namespace Name Mixin selector official <init>
Lbhf;<init>(Ldea;)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
Spawns entities into a world.- Specified by:
spawn
in interfaceSpawner
- Parameters:
spawnMonsters
- whether monsters should be spawnedspawnAnimals
- whether animals should be spawned- Returns:
- the number of entities spawned
- Mappings:
Namespace Name Mixin selector official a
Lbth;a(Laav;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
-
method_18018
- Mappings:
Namespace Name Mixin selector official a
Lbhf;a(Laav;)Z
intermediary method_18018
Lnet/minecraft/class_3990;method_18018(Lnet/minecraft/class_3218;)Z
named method_18018
Lnet/minecraft/world/WanderingTraderManager;method_18018(Lnet/minecraft/server/world/ServerWorld;)Z
-
spawnLlama
- Mappings:
Namespace Name Mixin selector official a
Lbhf;a(Laav;Lbhe;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
- Mappings:
Namespace Name Mixin selector official a
Lbhf;a(Lbty;Lfx;I)Lfx;
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
- Mappings:
Namespace Name Mixin selector official a
Lbhf;a(Lbsz;Lfx;)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
-