From f46af2fa9b8c27bc4d7d434fac5c27b98b74a7d6 Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Fri, 12 Mar 2021 15:18:13 -0500 Subject: [PATCH] Map vertical surface types (#2128) --- .../util/math/VerticalSurfaceType.mapping | 14 ++++++++++++++ .../decorator/CaveSurfaceDecoratorConfig.mapping | 2 ++ .../feature/VegetationPatchFeatureConfig.mapping | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 mappings/net/minecraft/util/math/VerticalSurfaceType.mapping diff --git a/mappings/net/minecraft/util/math/VerticalSurfaceType.mapping b/mappings/net/minecraft/util/math/VerticalSurfaceType.mapping new file mode 100644 index 0000000000..1f339b205e --- /dev/null +++ b/mappings/net/minecraft/util/math/VerticalSurfaceType.mapping @@ -0,0 +1,14 @@ +CLASS net/minecraft/class_5932 net/minecraft/util/math/VerticalSurfaceType + FIELD field_29315 CODEC Lcom/mojang/serialization/Codec; + FIELD field_29316 direction Lnet/minecraft/class_2350; + FIELD field_29317 offset I + FIELD field_29318 name Ljava/lang/String; + FIELD field_29319 VALUES [Lnet/minecraft/class_5932; + METHOD (Ljava/lang/String;ILnet/minecraft/class_2350;ILjava/lang/String;)V + ARG 3 direction + ARG 4 offset + ARG 5 name + METHOD method_34378 byName (Ljava/lang/String;)Lnet/minecraft/class_5932; + ARG 0 name + METHOD method_34379 getDirection ()Lnet/minecraft/class_2350; + METHOD method_34380 getOffset ()I diff --git a/mappings/net/minecraft/world/gen/decorator/CaveSurfaceDecoratorConfig.mapping b/mappings/net/minecraft/world/gen/decorator/CaveSurfaceDecoratorConfig.mapping index 3122cd2764..abb49be9c2 100644 --- a/mappings/net/minecraft/world/gen/decorator/CaveSurfaceDecoratorConfig.mapping +++ b/mappings/net/minecraft/world/gen/decorator/CaveSurfaceDecoratorConfig.mapping @@ -1,5 +1,7 @@ CLASS net/minecraft/class_5931 net/minecraft/world/gen/decorator/CaveSurfaceDecoratorConfig FIELD field_29310 CODEC Lcom/mojang/serialization/Codec; + FIELD field_29311 surface Lnet/minecraft/class_5932; FIELD field_29312 searchRange I METHOD (Lnet/minecraft/class_5932;I)V + ARG 1 surface ARG 2 searchRange diff --git a/mappings/net/minecraft/world/gen/feature/VegetationPatchFeatureConfig.mapping b/mappings/net/minecraft/world/gen/feature/VegetationPatchFeatureConfig.mapping index 4970932429..c2047eb82c 100644 --- a/mappings/net/minecraft/world/gen/feature/VegetationPatchFeatureConfig.mapping +++ b/mappings/net/minecraft/world/gen/feature/VegetationPatchFeatureConfig.mapping @@ -3,6 +3,7 @@ CLASS net/minecraft/class_5927 net/minecraft/world/gen/feature/VegetationPatchFe FIELD field_29286 replaceable Lnet/minecraft/class_2960; FIELD field_29287 groundState Lnet/minecraft/class_4651; FIELD field_29288 vegetationFeature Ljava/util/function/Supplier; + FIELD field_29289 surface Lnet/minecraft/class_5932; FIELD field_29290 depth Lnet/minecraft/class_5428; FIELD field_29291 extraBottomBlockChance F FIELD field_29292 verticalRange I @@ -13,6 +14,7 @@ CLASS net/minecraft/class_5927 net/minecraft/world/gen/feature/VegetationPatchFe ARG 1 replaceable ARG 2 groundState ARG 3 vegetationFeature + ARG 4 surface ARG 5 depth ARG 6 extraBottomBlockChance ARG 7 verticalRange