From 27d4f077fcbb5cddaedf1396c1c123b6ad4a7bbc Mon Sep 17 00:00:00 2001 From: Yanis48 Date: Thu, 19 Mar 2020 00:12:00 +0100 Subject: [PATCH] RespawnAnchorBlock & related respawn stuff (#1204) --- mappings/net/minecraft/block/RespawnAnchorBlock.mapping | 8 ++++++++ .../net/minecraft/entity/player/PlayerEntity.mapping | 3 +++ .../minecraft/server/network/ServerPlayerEntity.mapping | 9 +++++++++ mappings/net/minecraft/state/property/Properties.mapping | 1 + 4 files changed, 21 insertions(+) create mode 100644 mappings/net/minecraft/block/RespawnAnchorBlock.mapping diff --git a/mappings/net/minecraft/block/RespawnAnchorBlock.mapping b/mappings/net/minecraft/block/RespawnAnchorBlock.mapping new file mode 100644 index 0000000000..5395733539 --- /dev/null +++ b/mappings/net/minecraft/block/RespawnAnchorBlock.mapping @@ -0,0 +1,8 @@ +CLASS net/minecraft/class_4969 net/minecraft/block/RespawnAnchorBlock + FIELD field_23153 CHARGES Lnet/minecraft/class_2758; + METHOD method_26156 findRespawnPosition (Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Ljava/util/Optional; + ARG 0 world + ARG 1 pos + METHOD method_26157 getLightLevel (Lnet/minecraft/class_2680;I)I + ARG 0 state + ARG 1 maxLevel diff --git a/mappings/net/minecraft/entity/player/PlayerEntity.mapping b/mappings/net/minecraft/entity/player/PlayerEntity.mapping index bd7f184d4d..e023460dee 100644 --- a/mappings/net/minecraft/entity/player/PlayerEntity.mapping +++ b/mappings/net/minecraft/entity/player/PlayerEntity.mapping @@ -63,6 +63,9 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity METHOD method_23668 checkFallFlying ()Z METHOD method_23669 startFallFlying ()V METHOD method_23670 stopFallFlying ()V + METHOD method_26091 findRespawnPosition (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Z)Ljava/util/Optional; + ARG 0 world + ARG 1 pos METHOD method_7254 unlockRecipes (Ljava/util/Collection;)I ARG 1 recipes METHOD method_7255 addExperience (I)V diff --git a/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping b/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping index e518a6cbbc..1032f5b832 100644 --- a/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping +++ b/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping @@ -30,6 +30,9 @@ CLASS net/minecraft/class_3222 net/minecraft/server/network/ServerPlayerEntity FIELD field_13995 server Lnet/minecraft/server/MinecraftServer; FIELD field_13996 recipeBook Lnet/minecraft/class_3441; FIELD field_13997 syncedHealth F + FIELD field_23191 spawnPointDimension Lnet/minecraft/class_2874; + FIELD field_23192 spawnPointPosition Lnet/minecraft/class_2338; + FIELD field_23193 spawnPointSet Z METHOD (Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_3218;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_3225;)V ARG 1 server ARG 2 world @@ -94,3 +97,9 @@ CLASS net/minecraft/class_3222 net/minecraft/server/network/ServerPlayerEntity ARG 1 cameraPosition METHOD method_18783 dimensionChanged (Lnet/minecraft/class_3218;)V ARG 1 targetWorld + METHOD method_26280 getSpawnPointPosition ()Lnet/minecraft/class_2338; + METHOD method_26281 getSpawnPointDimension ()Lnet/minecraft/class_2874; + METHOD method_26282 isSpawnPointSet ()Z + METHOD method_26284 setSpawnPoint (Lnet/minecraft/class_2874;Lnet/minecraft/class_2338;ZZ)V + ARG 1 dimension + ARG 2 pos diff --git a/mappings/net/minecraft/state/property/Properties.mapping b/mappings/net/minecraft/state/property/Properties.mapping index 09b6fdea43..e8fb478ee4 100644 --- a/mappings/net/minecraft/state/property/Properties.mapping +++ b/mappings/net/minecraft/state/property/Properties.mapping @@ -88,6 +88,7 @@ CLASS net/minecraft/class_2741 net/minecraft/state/property/Properties FIELD field_22175 NORTH_WALL_SHAPE Lnet/minecraft/class_2754; FIELD field_22176 SOUTH_WALL_SHAPE Lnet/minecraft/class_2754; FIELD field_22177 WEST_WALL_SHAPE Lnet/minecraft/class_2754; + FIELD field_23187 CHARGES Lnet/minecraft/class_2758; METHOD method_11813 (Lnet/minecraft/class_2768;)Z ARG 0 shape METHOD method_11814 (Lnet/minecraft/class_2350;)Z