Package net.minecraft.world
Class WanderingTraderManager
java.lang.Object
net.minecraft.world.WanderingTraderManager
- All Implemented Interfaces:
SpecialSpawner
- Mappings:
Namespace Name named net/minecraft/world/WanderingTraderManagerintermediary net/minecraft/class_3990official cmr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final ServerWorldPropertiesprivate final Randomprivate intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleandoesNotSuffocateAt(BlockView world, BlockPos pos) getNearbySpawnPos(WorldView world, BlockPos pos, int range) intspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private voidspawnLlama(ServerWorld world, WanderingTraderEntity wanderingTrader, int range) private booleantrySpawn(ServerWorld world)
-
Field Details
-
DEFAULT_SPAWN_TIMER
private static final int DEFAULT_SPAWN_TIMER- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SPAWN_TIMERLnet/minecraft/world/WanderingTraderManager;DEFAULT_SPAWN_TIMER:Iintermediary field_30631Lnet/minecraft/class_3990;field_30631:Iofficial bLcmr;b:I
-
DEFAULT_SPAWN_DELAY
public static final int DEFAULT_SPAWN_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SPAWN_DELAYLnet/minecraft/world/WanderingTraderManager;DEFAULT_SPAWN_DELAY:Iintermediary field_30630Lnet/minecraft/class_3990;field_30630:Iofficial aLcmr;a:I
-
MIN_SPAWN_CHANCE
private static final int MIN_SPAWN_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_SPAWN_CHANCELnet/minecraft/world/WanderingTraderManager;MIN_SPAWN_CHANCE:Iintermediary field_30632Lnet/minecraft/class_3990;field_30632:Iofficial cLcmr;c:I
-
MAX_SPAWN_CHANCE
private static final int MAX_SPAWN_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_SPAWN_CHANCELnet/minecraft/world/WanderingTraderManager;MAX_SPAWN_CHANCE:Iintermediary field_30633Lnet/minecraft/class_3990;field_30633:Iofficial dLcmr;d:I
-
DEFAULT_SPAWN_CHANCE
private static final int DEFAULT_SPAWN_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SPAWN_CHANCELnet/minecraft/world/WanderingTraderManager;DEFAULT_SPAWN_CHANCE:Iintermediary field_30634Lnet/minecraft/class_3990;field_30634:Iofficial eLcmr;e:I
-
field_30635
private static final int field_30635- See Also:
- Mappings:
Namespace Name Mixin selector named field_30635Lnet/minecraft/world/WanderingTraderManager;field_30635:Iintermediary field_30635Lnet/minecraft/class_3990;field_30635:Iofficial fLcmr;f:I
-
field_30636
private static final int field_30636- See Also:
- Mappings:
Namespace Name Mixin selector named field_30636Lnet/minecraft/world/WanderingTraderManager;field_30636:Iintermediary field_30636Lnet/minecraft/class_3990;field_30636:Iofficial gLcmr;g:I
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/world/WanderingTraderManager;random:Lnet/minecraft/util/math/random/Random;intermediary field_17726Lnet/minecraft/class_3990;field_17726:Lnet/minecraft/class_5819;official hLcmr;h:Layw;
-
properties
- Mappings:
Namespace Name Mixin selector named propertiesLnet/minecraft/world/WanderingTraderManager;properties:Lnet/minecraft/world/level/ServerWorldProperties;intermediary field_24387Lnet/minecraft/class_3990;field_24387:Lnet/minecraft/class_5268;official iLcmr;i:Lerk;
-
spawnTimer
private int spawnTimer- Mappings:
Namespace Name Mixin selector named spawnTimerLnet/minecraft/world/WanderingTraderManager;spawnTimer:Iintermediary field_17728Lnet/minecraft/class_3990;field_17728:Iofficial jLcmr;j:I
-
spawnDelay
private int spawnDelay- Mappings:
Namespace Name Mixin selector named spawnDelayLnet/minecraft/world/WanderingTraderManager;spawnDelay:Iintermediary field_17729Lnet/minecraft/class_3990;field_17729:Iofficial kLcmr;k:I
-
spawnChance
private int spawnChance- Mappings:
Namespace Name Mixin selector named spawnChanceLnet/minecraft/world/WanderingTraderManager;spawnChance:Iintermediary field_17730Lnet/minecraft/class_3990;field_17730:Iofficial lLcmr;l:I
-
-
Constructor Details
-
WanderingTraderManager
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/WanderingTraderManager;<init>(Lnet/minecraft/world/level/ServerWorldProperties;)Vintermediary <init>Lnet/minecraft/class_3990;<init>(Lnet/minecraft/class_5268;)Vofficial <init>Lcmr;<init>(Lerk;)V
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawnin 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 spawnLnet/minecraft/world/spawner/SpecialSpawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)Iintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Iofficial aLdcj;a(Laqu;ZZ)I
-
trySpawn
- Mappings:
Namespace Name Mixin selector named trySpawnLnet/minecraft/world/WanderingTraderManager;trySpawn(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_18018Lnet/minecraft/class_3990;method_18018(Lnet/minecraft/class_3218;)Zofficial aLcmr;a(Laqu;)Z
-
spawnLlama
- Mappings:
Namespace Name Mixin selector named spawnLlamaLnet/minecraft/world/WanderingTraderManager;spawnLlama(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/WanderingTraderEntity;I)Vintermediary method_18016Lnet/minecraft/class_3990;method_18016(Lnet/minecraft/class_3218;Lnet/minecraft/class_3989;I)Vofficial aLcmr;a(Laqu;Lcmq;I)V
-
getNearbySpawnPos
- Mappings:
Namespace Name Mixin selector named getNearbySpawnPosLnet/minecraft/world/WanderingTraderManager;getNearbySpawnPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/util/math/BlockPos;intermediary method_18017Lnet/minecraft/class_3990;method_18017(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2338;official aLcmr;a(Ldcz;Ljd;I)Ljd;
-
doesNotSuffocateAt
- Mappings:
Namespace Name Mixin selector named doesNotSuffocateAtLnet/minecraft/world/WanderingTraderManager;doesNotSuffocateAt(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_23279Lnet/minecraft/class_3990;method_23279(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Zofficial aLcmr;a(Ldcc;Ljd;)Z
-