mirror of https://github.com/FabricMC/yarn.git
Document some bits of Spawner. (#1547)
* Document some bits of Spawner. * Update mappings/net/minecraft/world/gen/PillagerSpawner.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * captain * Update Spawner.mapping * Update mappings/net/minecraft/world/gen/Spawner.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
parent
3d581ecc5e
commit
12aab80a83
|
@ -18,6 +18,7 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld
|
|||
FIELD field_18811 raidManager Lnet/minecraft/class_3767;
|
||||
FIELD field_23787 structureAccessor Lnet/minecraft/class_5138;
|
||||
FIELD field_24624 serverChunkManager Lnet/minecraft/class_3215;
|
||||
FIELD field_25141 spawners Ljava/util/List;
|
||||
FIELD field_25142 enderDragonFight Lnet/minecraft/class_2881;
|
||||
FIELD field_25144 END_SPAWN_POS Lnet/minecraft/class_2338;
|
||||
METHOD <init> (Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_5268;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lnet/minecraft/class_2874;Lnet/minecraft/class_3949;Lnet/minecraft/class_2794;ZJLjava/util/List;Z)V
|
||||
|
@ -26,6 +27,7 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld
|
|||
ARG 3 session
|
||||
ARG 4 properties
|
||||
ARG 8 generationProgressListener
|
||||
ARG 13 spawners
|
||||
METHOD method_14166 spawnParticles (Lnet/minecraft/class_3222;Lnet/minecraft/class_2394;ZDDDIDDDD)Z
|
||||
ARG 1 viewer
|
||||
ARG 2 particle
|
||||
|
@ -167,6 +169,9 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld
|
|||
METHOD method_29198 getEnderDragonFight ()Lnet/minecraft/class_2881;
|
||||
METHOD method_29200 createEndSpawnPlatform (Lnet/minecraft/class_3218;)V
|
||||
ARG 0 world
|
||||
METHOD method_29202 tickSpawners (ZZ)V
|
||||
ARG 1 spawnMonsters
|
||||
ARG 2 spawnAnimals
|
||||
METHOD method_29203 tickTime ()V
|
||||
METHOD method_8448 updateSleepingPlayers ()V
|
||||
METHOD method_8487 locateStructure (Lnet/minecraft/class_3195;Lnet/minecraft/class_2338;IZ)Lnet/minecraft/class_2338;
|
||||
|
|
|
@ -3,6 +3,9 @@ CLASS net/minecraft/class_3990 net/minecraft/world/WanderingTraderManager
|
|||
FIELD field_17728 spawnTimer I
|
||||
FIELD field_17729 spawnDelay I
|
||||
FIELD field_17730 spawnChance I
|
||||
FIELD field_24387 properties Lnet/minecraft/class_5268;
|
||||
METHOD <init> (Lnet/minecraft/class_5268;)V
|
||||
ARG 1 properties
|
||||
METHOD method_18016 spawnLlama (Lnet/minecraft/class_3218;Lnet/minecraft/class_3989;I)V
|
||||
METHOD method_18017 getNearbySpawnPos (Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2338;
|
||||
METHOD method_23279 doesNotSuffocateAt (Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
CLASS net/minecraft/class_3769 net/minecraft/world/gen/PillagerSpawner
|
||||
FIELD field_16652 ticksUntilNextSpawn I
|
||||
METHOD method_16575 spawnOneEntity (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;Z)Z
|
||||
METHOD method_16575 spawnPillager (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;Z)Z
|
||||
ARG 1 world
|
||||
ARG 2 pos
|
||||
ARG 3 random
|
||||
ARG 4 captain
|
||||
COMMENT whether the pillager is the captain of a patrol
|
||||
|
|
|
@ -1,2 +1,13 @@
|
|||
CLASS net/minecraft/class_5304 net/minecraft/world/gen/Spawner
|
||||
COMMENT Handles spawning entities in a world.
|
||||
COMMENT
|
||||
COMMENT <p>A spawner is typically used to spawn entities within a special context, such as cats in a village or wandering traders.
|
||||
METHOD method_6445 spawn (Lnet/minecraft/class_3218;ZZ)I
|
||||
COMMENT Spawns entities into a world.
|
||||
COMMENT
|
||||
COMMENT @return the number of entities spawned
|
||||
ARG 1 world
|
||||
ARG 2 spawnMonsters
|
||||
COMMENT whether monsters should be spawned
|
||||
ARG 3 spawnAnimals
|
||||
COMMENT whether animals should be spawned
|
||||
|
|
Loading…
Reference in New Issue