From 4b8923c7a5b1f1bb490d39a8304665bd5c74d01e Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Fri, 12 Mar 2021 15:18:27 -0500 Subject: [PATCH] Map randomized int block state providers (#2129) * Map randomized int block state providers * Fix the IntProperty class being unnecessarily qualified in the documentation for the RandomizedIntBlockStateProvider class Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> --- .../gen/feature/ConfiguredFeatures.mapping | 2 ++ .../RandomizedIntBlockStateProvider.mapping | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 mappings/net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider.mapping diff --git a/mappings/net/minecraft/world/gen/feature/ConfiguredFeatures.mapping b/mappings/net/minecraft/world/gen/feature/ConfiguredFeatures.mapping index 58dfc9354a..769381cb4c 100644 --- a/mappings/net/minecraft/world/gen/feature/ConfiguredFeatures.mapping +++ b/mappings/net/minecraft/world/gen/feature/ConfiguredFeatures.mapping @@ -8,6 +8,8 @@ CLASS net/minecraft/class_5464 net/minecraft/world/gen/feature/ConfiguredFeature FIELD field_29090 IRON_CONFIG Lnet/minecraft/class_3124; FIELD field_29091 REDSTONE_CONFIG Lnet/minecraft/class_3124; FIELD field_29508 INFESTED_TARGETS Lcom/google/common/collect/ImmutableList; + FIELD field_29511 RANDOM_BERRIES_CAVE_VINES_BODY_PROVIDER Lnet/minecraft/class_4657; + FIELD field_29512 RANDOM_AGE_CAVE_VINES_HEAD_PROVIDER Lnet/minecraft/class_5929; METHOD method_30590 register (Ljava/lang/String;Lnet/minecraft/class_2975;)Lnet/minecraft/class_2975; ARG 0 id ARG 1 configuredFeature diff --git a/mappings/net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider.mapping b/mappings/net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider.mapping new file mode 100644 index 0000000000..9860a1a3c6 --- /dev/null +++ b/mappings/net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider.mapping @@ -0,0 +1,26 @@ +CLASS net/minecraft/class_5929 net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider + COMMENT A {@linkplain BlockStateProvider block state provider} that randomizes a single {@link IntProperty} of a block state provided by another provider. + FIELD field_29301 CODEC Lcom/mojang/serialization/Codec; + FIELD field_29302 source Lnet/minecraft/class_4651; + FIELD field_29303 propertyName Ljava/lang/String; + FIELD field_29304 property Lnet/minecraft/class_2758; + FIELD field_29305 values Lnet/minecraft/class_5428; + METHOD (Lnet/minecraft/class_4651;Ljava/lang/String;Lnet/minecraft/class_5428;)V + ARG 1 source + ARG 2 propertyName + ARG 3 values + METHOD (Lnet/minecraft/class_4651;Lnet/minecraft/class_2758;Lnet/minecraft/class_5428;)V + ARG 1 source + ARG 2 property + ARG 3 values + METHOD method_34363 getIntPropertyByName (Lnet/minecraft/class_2680;Ljava/lang/String;)Lnet/minecraft/class_2758; + ARG 0 state + ARG 1 propertyName + METHOD method_34364 (Lnet/minecraft/class_2769;)Lnet/minecraft/class_2758; + ARG 0 property + METHOD method_34365 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App; + ARG 0 instance + METHOD method_34368 (Ljava/lang/String;Lnet/minecraft/class_2769;)Z + ARG 1 property + METHOD method_34369 (Lnet/minecraft/class_2769;)Z + ARG 0 property