Spawn locating mappings (#1386)

SpawnLocating and ServerPlayerEntity must be in same package

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2020-05-22 06:43:25 -05:00 committed by GitHub
parent b274a2e932
commit 35f45ac7ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 0 deletions

View File

@ -39,6 +39,7 @@ CLASS net/minecraft/class_3222 net/minecraft/server/network/ServerPlayerEntity
ARG 1 server
ARG 2 world
ARG 3 profile
ARG 4 interactionManager
METHOD method_14203 copyFrom (Lnet/minecraft/class_3222;Z)V
ARG 1 oldPlayer
ARG 2 alive
@ -80,6 +81,8 @@ CLASS net/minecraft/class_3222 net/minecraft/server/network/ServerPlayerEntity
METHOD method_14240 onTeleportationDone ()V
METHOD method_14241 updateCursorStack ()V
METHOD method_14242 getCameraEntity ()Lnet/minecraft/class_1297;
METHOD method_14244 calculateSpawnOffsetMultiplier (I)I
ARG 1 horizontalSpawnArea
METHOD method_14245 moveToSpawn (Lnet/minecraft/class_3218;)V
ARG 1 world
METHOD method_14246 sendUnloadChunkPacket (Lnet/minecraft/class_1923;)V

View File

@ -0,0 +1,21 @@
CLASS net/minecraft/class_5322 net/minecraft/server/network/SpawnLocating
METHOD method_29194 findOverworldSpawn (Lnet/minecraft/class_3218;IIZ)Lnet/minecraft/class_2338;
ARG 0 world
ARG 1 x
ARG 2 z
ARG 3 validSpawnNeeded
METHOD method_29195 findEndSpawn (Lnet/minecraft/class_3218;JII)Lnet/minecraft/class_2338;
ARG 0 world
ARG 1 seed
ARG 3 x
ARG 4 z
METHOD method_29196 findServerSpawnPoint (Lnet/minecraft/class_3218;Lnet/minecraft/class_1923;Z)Lnet/minecraft/class_2338;
ARG 0 world
ARG 1 chunkPos
ARG 2 validSpawnNeeded
METHOD method_29197 findPlayerSpawn (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;III)Lnet/minecraft/class_2338;
ARG 0 world
ARG 1 pos
ARG 2 negativeOffset
ARG 3 xOffset
ARG 4 zOffset

View File

@ -149,6 +149,7 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld
METHOD method_24500 locateBiome (Lnet/minecraft/class_1959;Lnet/minecraft/class_2338;II)Lnet/minecraft/class_2338;
METHOD method_27056 getStructureAccessor ()Lnet/minecraft/class_5138;
METHOD method_27909 iterateEntities ()Ljava/lang/Iterable;
METHOD method_27911 getSpawnPos ()Lnet/minecraft/class_2338;
METHOD method_8416 addLightning (Lnet/minecraft/class_1538;)V
METHOD method_8448 updateSleepingPlayers ()V
METHOD method_8487 locateStructure (Lnet/minecraft/class_3195;Lnet/minecraft/class_2338;IZ)Lnet/minecraft/class_2338;