Package net.minecraft.world
Class WanderingTraderManager
java.lang.Object
net.minecraft.world.WanderingTraderManager
- All Implemented Interfaces:
Spawner
- Mappings:
Namespace Name official bjxintermediary net/minecraft/class_3990named net/minecraft/world/WanderingTraderManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intprivate static intprivate static intprivate static intprivate static intprivate static intprivate static intprivate ServerWorldPropertiesprivate 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
-
field_30631
private static final int field_30631- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLbjx;b:Iintermediary field_30631Lnet/minecraft/class_3990;field_30631:Inamed field_30631Lnet/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 aLbjx;a:Iintermediary field_30630Lnet/minecraft/class_3990;field_30630:Inamed field_30630Lnet/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 cLbjx;c:Iintermediary field_30632Lnet/minecraft/class_3990;field_30632:Inamed field_30632Lnet/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 dLbjx;d:Iintermediary field_30633Lnet/minecraft/class_3990;field_30633:Inamed field_30633Lnet/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 eLbjx;e:Iintermediary field_30634Lnet/minecraft/class_3990;field_30634:Inamed field_30634Lnet/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 fLbjx;f:Iintermediary field_30635Lnet/minecraft/class_3990;field_30635:Inamed field_30635Lnet/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 gLbjx;g:Iintermediary field_30636Lnet/minecraft/class_3990;field_30636:Inamed field_30636Lnet/minecraft/world/WanderingTraderManager;field_30636:I
-
random
- Mappings:
Namespace Name Mixin selector official hLbjx;h:Ljava/util/Random;intermediary field_17726Lnet/minecraft/class_3990;field_17726:Ljava/util/Random;named randomLnet/minecraft/world/WanderingTraderManager;random:Ljava/util/Random;
-
properties
- Mappings:
Namespace Name Mixin selector official iLbjx;i:Ldih;intermediary field_24387Lnet/minecraft/class_3990;field_24387:Lnet/minecraft/class_5268;named propertiesLnet/minecraft/world/WanderingTraderManager;properties:Lnet/minecraft/world/level/ServerWorldProperties;
-
spawnTimer
private int spawnTimer- Mappings:
Namespace Name Mixin selector official jLbjx;j:Iintermediary field_17728Lnet/minecraft/class_3990;field_17728:Inamed spawnTimerLnet/minecraft/world/WanderingTraderManager;spawnTimer:I
-
spawnDelay
private int spawnDelay- Mappings:
Namespace Name Mixin selector official kLbjx;k:Iintermediary field_17729Lnet/minecraft/class_3990;field_17729:Inamed spawnDelayLnet/minecraft/world/WanderingTraderManager;spawnDelay:I
-
spawnChance
private int spawnChance- Mappings:
Namespace Name Mixin selector official lLbjx;l:Iintermediary field_17730Lnet/minecraft/class_3990;field_17730:Inamed spawnChanceLnet/minecraft/world/WanderingTraderManager;spawnChance:I
-
-
Constructor Details
-
WanderingTraderManager
- Mappings:
Namespace Name Mixin selector official <init>Lbjx;<init>(Ldih;)Vintermediary <init>Lnet/minecraft/class_3990;<init>(Lnet/minecraft/class_5268;)Vnamed <init>Lnet/minecraft/world/WanderingTraderManager;<init>(Lnet/minecraft/world/level/ServerWorldProperties;)V
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawnin 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 aLbwb;a(Labr;ZZ)Iintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Inamed spawnLnet/minecraft/world/gen/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
-
trySpawn
- Mappings:
Namespace Name Mixin selector official aLbjx;a(Labr;)Zintermediary method_18018Lnet/minecraft/class_3990;method_18018(Lnet/minecraft/class_3218;)Znamed trySpawnLnet/minecraft/world/WanderingTraderManager;trySpawn(Lnet/minecraft/server/world/ServerWorld;)Z
-
spawnLlama
- Mappings:
Namespace Name Mixin selector official aLbjx;a(Labr;Lbjw;I)Vintermediary method_18016Lnet/minecraft/class_3990;method_18016(Lnet/minecraft/class_3218;Lnet/minecraft/class_3989;I)Vnamed spawnLlamaLnet/minecraft/world/WanderingTraderManager;spawnLlama(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/WanderingTraderEntity;I)V
-
getNearbySpawnPos
- Mappings:
Namespace Name Mixin selector official aLbjx;a(Lbws;Lgg;I)Lgg;intermediary method_18017Lnet/minecraft/class_3990;method_18017(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2338;named getNearbySpawnPosLnet/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 aLbjx;a(Lbvt;Lgg;)Zintermediary method_23279Lnet/minecraft/class_3990;method_23279(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Znamed doesNotSuffocateAtLnet/minecraft/world/WanderingTraderManager;doesNotSuffocateAt(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-