20w28a worldgen mappings (#1571)

* Some 20w28a worldgen mappings

* Decoratable and UniformIntDistribution

* Remove CountFeatureConfig.mapping

* UniformIntDistribution.createCodec -> createValidatedCodec

* Document UniformIntDistribution.of(int)
This commit is contained in:
Juuxel 2020-07-16 20:06:26 +03:00 committed by GitHub
parent e64cdb22bd
commit fcf6d66e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 66 additions and 10 deletions

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_5469 net/minecraft/structure/processor/ProcessorLists
METHOD method_30601 register (Ljava/lang/String;Lcom/google/common/collect/ImmutableList;)Lcom/google/common/collect/ImmutableList;
ARG 0 name
ARG 0 id
ARG 1 processorList

View File

@ -122,7 +122,8 @@ CLASS net/minecraft/class_1959 net/minecraft/world/biome/Biome
METHOD method_8731 surfaceBuilder (Ljava/util/function/Supplier;)Lnet/minecraft/class_1959$class_1960;
METHOD method_8735 precipitation (Lnet/minecraft/class_1959$class_1963;)Lnet/minecraft/class_1959$class_1960;
ARG 1 precipitation
METHOD method_8737 configureSurfaceBuilder (Lnet/minecraft/class_3504;)Lnet/minecraft/class_1959$class_1960;
METHOD method_8737 surfaceBuilder (Lnet/minecraft/class_3504;)Lnet/minecraft/class_1959$class_1960;
ARG 1 surfaceBuilder
METHOD method_8738 category (Lnet/minecraft/class_1959$class_1961;)Lnet/minecraft/class_1959$class_1960;
ARG 1 category
METHOD method_8740 depth (F)Lnet/minecraft/class_1959$class_1960;

View File

@ -0,0 +1,20 @@
CLASS net/minecraft/class_5428 net/minecraft/world/gen/UniformIntDistribution
FIELD field_25809 CODEC Lcom/mojang/serialization/Codec;
FIELD field_25810 base I
FIELD field_25811 spread I
METHOD <init> (II)V
ARG 1 base
ARG 2 spread
METHOD method_30314 of (I)Lnet/minecraft/class_5428;
COMMENT Creates a distribution with a constant value.
ARG 0 value
COMMENT the constant value
METHOD method_30315 of (II)Lnet/minecraft/class_5428;
ARG 0 base
ARG 1 spread
METHOD method_30316 createValidatedCodec (III)Lcom/mojang/serialization/Codec;
ARG 0 minBase
ARG 1 maxBase
ARG 2 maxSpread
METHOD method_30321 getValue (Ljava/util/Random;)I
ARG 1 random

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_5463 net/minecraft/world/gen/carver/ConfiguredCarvers
METHOD method_30588 register (Ljava/lang/String;Lnet/minecraft/class_2922;)Lnet/minecraft/class_2922;
ARG 0 name
ARG 0 id
ARG 1 configuredCarver

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_3297 net/minecraft/world/gen/decorator/ChanceDecoratorConfig
FIELD field_14289 chance I
FIELD field_24980 CODEC Lcom/mojang/serialization/Codec;
METHOD <init> (I)V
ARG 1 chance

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_3276 net/minecraft/world/gen/decorator/CountExtraChanceDecoratorConfig
CLASS net/minecraft/class_3276 net/minecraft/world/gen/decorator/CountExtraDecoratorConfig
FIELD field_14209 extraChance F
FIELD field_14210 extraCount I
FIELD field_14211 count I

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_3275 net/minecraft/world/gen/decorator/TopSolidHeightmapNoiseBiasedDecoratorConfig
CLASS net/minecraft/class_3275 net/minecraft/world/gen/decorator/CountNoiseBiasedDecoratorConfig
FIELD field_14205 noiseOffset D
FIELD field_14206 noiseFactor D
FIELD field_14208 noiseToCountRatio I

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_3003 net/minecraft/world/gen/decorator/NoiseHeightmapDecoratorConfig
CLASS net/minecraft/class_3003 net/minecraft/world/gen/decorator/CountNoiseDecoratorConfig
FIELD field_13444 noiseLevel D
FIELD field_13445 aboveNoise I
FIELD field_13446 belowNoise I

View File

@ -0,0 +1,26 @@
CLASS net/minecraft/class_5432 net/minecraft/world/gen/decorator/Decoratable
METHOD method_30371 spreadHorizontally ()Ljava/lang/Object;
COMMENT Applies the {@code minecraft:square} decorator, which spreads positions
COMMENT horizontally a random amount between 0 and 15 blocks on both horizontal axes.
METHOD method_30372 applyChance (I)Ljava/lang/Object;
COMMENT Applies the {@code minecraft:chance} decorators, which only
COMMENT allows positions with a {@code 1 / count} chance,
COMMENT e.g. a count of 2 would give approximately half of the input positions.
ARG 1 chance
METHOD method_30373 repeat (Lnet/minecraft/class_5428;)Ljava/lang/Object;
COMMENT Applies the {@code minecraft:count} decorator, which repeats
COMMENT the input positions by the value of the {@code count} distribution.
ARG 1 count
COMMENT the distribution of the repetition count
METHOD method_30374 decorate (Lnet/minecraft/class_3243;)Ljava/lang/Object;
ARG 1 decorator
METHOD method_30375 repeat (I)Ljava/lang/Object;
COMMENT Applies the {@code minecraft:count} decorator, which repeats
COMMENT the input positions {@code count} times.
ARG 1 count
COMMENT the repetition count
METHOD method_30376 repeatRandomly (I)Ljava/lang/Object;
COMMENT Applies the {@code minecraft:count} decorator, which repeats
COMMENT the input positions by a random number between 0 and {@code maxCount}.
ARG 1 maxCount
COMMENT the maximum repetition count

View File

@ -6,6 +6,10 @@ CLASS net/minecraft/class_3284 net/minecraft/world/gen/decorator/Decorator
ARG 0 registryName
ARG 1 decorator
METHOD method_14452 getPositions (Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2998;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
ARG 1 context
ARG 2 random
ARG 3 config
ARG 4 pos
METHOD method_23475 configure (Lnet/minecraft/class_2998;)Lnet/minecraft/class_3243;
ARG 1 config
METHOD method_28928 getCodec ()Lcom/mojang/serialization/Codec;

View File

@ -1,6 +1,7 @@
CLASS net/minecraft/class_3277 net/minecraft/world/gen/decorator/CountDepthDecoratorConfig
CLASS net/minecraft/class_3277 net/minecraft/world/gen/decorator/DepthAverageDecoratorConfig
FIELD field_14212 spread I
FIELD field_14214 count I
FIELD field_24982 CODEC Lcom/mojang/serialization/Codec;
METHOD <init> (II)V
ARG 1 count
ARG 2 baseline

View File

@ -1,2 +1,5 @@
CLASS net/minecraft/class_3667 net/minecraft/world/gen/decorator/SimpleDecorator
METHOD method_14452 getPositions (Ljava/util/Random;Lnet/minecraft/class_2998;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
ARG 1 random
ARG 2 config
ARG 3 pos

View File

@ -1,7 +1,7 @@
CLASS net/minecraft/class_5464 net/minecraft/world/gen/feature/ConfiguredFeatures
FIELD field_26090 FOREST_FLOWER_VEGETATION_CONFIGS Lcom/google/common/collect/ImmutableList;
METHOD method_30590 register (Ljava/lang/String;Lnet/minecraft/class_2975;)Lnet/minecraft/class_2975;
ARG 0 name
ARG 0 id
ARG 1 configuredFeature
CLASS class_5465 Configs
FIELD field_26141 GRASS_CONFIG Lnet/minecraft/class_4638;

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_5470 net/minecraft/world/gen/feature/ConfiguredStructureFeatures
METHOD method_30603 register (Ljava/lang/String;Lnet/minecraft/class_5312;)Lnet/minecraft/class_5312;
ARG 0 name
ARG 0 id
ARG 1 configuredStructureFeature

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_5471 net/minecraft/world/gen/surfacebuilder/ConfiguredSurfaceBuilders
METHOD method_30610 register (Ljava/lang/String;Lnet/minecraft/class_3504;)Lnet/minecraft/class_3504;
ARG 0 name
ARG 0 id
ARG 1 configuredSurfaceBuilder