diff --git a/mappings/net/minecraft/util/StringIdentifiable.mapping b/mappings/net/minecraft/util/StringIdentifiable.mapping index 3ee9c0f159..6411c32da4 100644 --- a/mappings/net/minecraft/util/StringIdentifiable.mapping +++ b/mappings/net/minecraft/util/StringIdentifiable.mapping @@ -1,2 +1,20 @@ CLASS net/minecraft/class_3542 net/minecraft/util/StringIdentifiable METHOD method_15434 asString ()Ljava/lang/String; + METHOD method_28140 createCodec (Ljava/util/function/Supplier;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec; + COMMENT Creates a codec that serializes an enum implementing this interface either + COMMENT using its ordinals (when compressed) or using it's {@link #asString()} method + COMMENT and a given decode function. + ARG 0 enumValues + ARG 1 fromString + METHOD method_28141 createCodec (Ljava/util/function/ToIntFunction;Ljava/util/function/IntFunction;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec; + COMMENT Creates a codec that serializes a class implementing this interface using either + COMMENT the given toInt and fromInt mapping functions (when compressed output is + COMMENT requested), or its {@link #asString()} method and a given fromString function. + ARG 0 compressedEncoder + ARG 1 compressedDecoder + ARG 2 decoder + METHOD method_28143 ([Ljava/lang/Enum;I)Ljava/lang/Enum; + ARG 1 ordinal + CLASS 1 + METHOD encode (Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult; + ARG 1 value diff --git a/mappings/net/minecraft/world/gen/decorator/AlterGroundTreeDecorator.mapping b/mappings/net/minecraft/world/gen/decorator/AlterGroundTreeDecorator.mapping index e4ed4e0df5..66b00a0cb1 100644 --- a/mappings/net/minecraft/world/gen/decorator/AlterGroundTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/decorator/AlterGroundTreeDecorator.mapping @@ -1 +1,2 @@ CLASS net/minecraft/class_4658 net/minecraft/world/gen/decorator/AlterGroundTreeDecorator + FIELD field_24957 CODEC Lcom/mojang/serialization/Codec; diff --git a/mappings/net/minecraft/world/gen/decorator/BeehiveTreeDecorator.mapping b/mappings/net/minecraft/world/gen/decorator/BeehiveTreeDecorator.mapping index 9ce9c7b8bf..754ea992c7 100644 --- a/mappings/net/minecraft/world/gen/decorator/BeehiveTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/decorator/BeehiveTreeDecorator.mapping @@ -1,2 +1,3 @@ CLASS net/minecraft/class_4659 net/minecraft/world/gen/decorator/BeehiveTreeDecorator FIELD field_21317 chance F + FIELD field_24958 CODEC Lcom/mojang/serialization/Codec; diff --git a/mappings/net/minecraft/world/gen/decorator/CocoaBeansTreeDecorator.mapping b/mappings/net/minecraft/world/gen/decorator/CocoaBeansTreeDecorator.mapping index 73ce02f5fc..0b6e1b4aa9 100644 --- a/mappings/net/minecraft/world/gen/decorator/CocoaBeansTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/decorator/CocoaBeansTreeDecorator.mapping @@ -1 +1,2 @@ CLASS net/minecraft/class_4660 net/minecraft/world/gen/decorator/CocoaBeansTreeDecorator + FIELD field_24959 CODEC Lcom/mojang/serialization/Codec; diff --git a/mappings/net/minecraft/world/gen/decorator/LeaveVineTreeDecorator.mapping b/mappings/net/minecraft/world/gen/decorator/LeaveVineTreeDecorator.mapping index 647de7eaea..b508436a7a 100644 --- a/mappings/net/minecraft/world/gen/decorator/LeaveVineTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/decorator/LeaveVineTreeDecorator.mapping @@ -1 +1,3 @@ CLASS net/minecraft/class_4661 net/minecraft/world/gen/decorator/LeaveVineTreeDecorator + FIELD field_24960 CODEC Lcom/mojang/serialization/Codec; + FIELD field_24961 INSTANCE Lnet/minecraft/class_4661; diff --git a/mappings/net/minecraft/world/gen/decorator/TreeDecorator.mapping b/mappings/net/minecraft/world/gen/decorator/TreeDecorator.mapping index 9b9dbc7d9e..f166349e55 100644 --- a/mappings/net/minecraft/world/gen/decorator/TreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/decorator/TreeDecorator.mapping @@ -1,5 +1,6 @@ CLASS net/minecraft/class_4662 net/minecraft/world/gen/decorator/TreeDecorator COMMENT Tree decorators can add additional blocks to trees, such as vines or beehives. + FIELD field_24962 TYPE_CODEC Lcom/mojang/serialization/Codec; METHOD method_23469 generate (Lnet/minecraft/class_5281;Ljava/util/Random;Ljava/util/List;Ljava/util/List;Ljava/util/Set;Lnet/minecraft/class_3341;)V ARG 2 random ARG 3 logPositions diff --git a/mappings/net/minecraft/world/gen/decorator/TreeDecoratorType.mapping b/mappings/net/minecraft/world/gen/decorator/TreeDecoratorType.mapping index a8be841f3b..b03ea45669 100644 --- a/mappings/net/minecraft/world/gen/decorator/TreeDecoratorType.mapping +++ b/mappings/net/minecraft/world/gen/decorator/TreeDecoratorType.mapping @@ -1 +1,5 @@ CLASS net/minecraft/class_4663 net/minecraft/world/gen/decorator/TreeDecoratorType + FIELD field_24963 codec Lcom/mojang/serialization/Codec; + METHOD method_28894 getCodec ()Lcom/mojang/serialization/Codec; + METHOD method_28895 register (Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_4663; + ARG 0 type diff --git a/mappings/net/minecraft/world/gen/decorator/TrunkVineTreeDecorator.mapping b/mappings/net/minecraft/world/gen/decorator/TrunkVineTreeDecorator.mapping index fbc799315a..843adc8326 100644 --- a/mappings/net/minecraft/world/gen/decorator/TrunkVineTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/decorator/TrunkVineTreeDecorator.mapping @@ -1 +1,3 @@ CLASS net/minecraft/class_4664 net/minecraft/world/gen/decorator/TrunkVineTreeDecorator + FIELD field_24964 CODEC Lcom/mojang/serialization/Codec; + FIELD field_24965 INSTANCE Lnet/minecraft/class_4664; diff --git a/mappings/net/minecraft/world/gen/feature/ConfiguredFeature.mapping b/mappings/net/minecraft/world/gen/feature/ConfiguredFeature.mapping index 0e9c652892..f39b9aae5b 100644 --- a/mappings/net/minecraft/world/gen/feature/ConfiguredFeature.mapping +++ b/mappings/net/minecraft/world/gen/feature/ConfiguredFeature.mapping @@ -2,6 +2,7 @@ CLASS net/minecraft/class_2975 net/minecraft/world/gen/feature/ConfiguredFeature FIELD field_13375 config Lnet/minecraft/class_3037; FIELD field_13376 feature Lnet/minecraft/class_3031; FIELD field_21589 LOGGER Lorg/apache/logging/log4j/Logger; + FIELD field_24832 NO_OP Lnet/minecraft/class_2975; FIELD field_24833 CODEC Lcom/mojang/serialization/Codec; METHOD method_12862 generate (Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Z METHOD method_23387 withChance (F)Lnet/minecraft/class_3226; diff --git a/mappings/net/minecraft/world/gen/feature/ConfiguredStructureFeature.mapping b/mappings/net/minecraft/world/gen/feature/ConfiguredStructureFeature.mapping index 0975f318c4..7665429cf2 100644 --- a/mappings/net/minecraft/world/gen/feature/ConfiguredStructureFeature.mapping +++ b/mappings/net/minecraft/world/gen/feature/ConfiguredStructureFeature.mapping @@ -1 +1,4 @@ CLASS net/minecraft/class_5312 net/minecraft/world/gen/feature/ConfiguredStructureFeature + FIELD field_24834 TYPE_CODEC Lcom/mojang/serialization/Codec; + FIELD field_24835 feature Lnet/minecraft/class_3195; + FIELD field_24836 config Lnet/minecraft/class_3037; diff --git a/mappings/net/minecraft/world/gen/feature/OreFeatureConfig.mapping b/mappings/net/minecraft/world/gen/feature/OreFeatureConfig.mapping index 653adaac9c..6104469851 100644 --- a/mappings/net/minecraft/world/gen/feature/OreFeatureConfig.mapping +++ b/mappings/net/minecraft/world/gen/feature/OreFeatureConfig.mapping @@ -11,6 +11,7 @@ CLASS net/minecraft/class_3124 net/minecraft/world/gen/feature/OreFeatureConfig FIELD field_13726 name Ljava/lang/String; FIELD field_13728 nameMap Ljava/util/Map; FIELD field_13731 predicate Ljava/util/function/Predicate; + FIELD field_24898 CODEC Lcom/mojang/serialization/Codec; METHOD (Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Predicate;)V ARG 3 name METHOD method_13635 getName ()Ljava/lang/String; diff --git a/mappings/net/minecraft/world/gen/feature/StructureFeature.mapping b/mappings/net/minecraft/world/gen/feature/StructureFeature.mapping index 44084738eb..581c3f81e9 100644 --- a/mappings/net/minecraft/world/gen/feature/StructureFeature.mapping +++ b/mappings/net/minecraft/world/gen/feature/StructureFeature.mapping @@ -3,6 +3,7 @@ CLASS net/minecraft/class_3195 net/minecraft/world/gen/feature/StructureFeature FIELD field_24842 STRUCTURES Lcom/google/common/collect/BiMap; FIELD field_24851 SWAMP_HUT Lnet/minecraft/class_3197; FIELD field_24862 STRUCTURE_TO_GENERATION_STEP Ljava/util/Map; + FIELD field_24863 codec Lcom/mojang/serialization/Codec; METHOD method_13149 getMonsterSpawns ()Ljava/util/List; METHOD method_14015 locateStructure (Lnet/minecraft/class_4538;Lnet/minecraft/class_5138;Lnet/minecraft/class_2338;IZJLnet/minecraft/class_5314;)Lnet/minecraft/class_2338; ARG 5 skipExistingChunks @@ -16,6 +17,7 @@ CLASS net/minecraft/class_3195 net/minecraft/world/gen/feature/StructureFeature ARG 0 name ARG 1 structureFeature ARG 2 step + METHOD method_28665 getCodec ()Lcom/mojang/serialization/Codec; CLASS class_3774 StructureStartFactory METHOD create (Lnet/minecraft/class_3195;IILnet/minecraft/class_3341;IJ)Lnet/minecraft/class_3449; ARG 1 feature diff --git a/mappings/net/minecraft/world/gen/placer/SimpleBlockPlacer.mapping b/mappings/net/minecraft/world/gen/placer/SimpleBlockPlacer.mapping index 4784c0367a..2ae80d74e1 100644 --- a/mappings/net/minecraft/world/gen/placer/SimpleBlockPlacer.mapping +++ b/mappings/net/minecraft/world/gen/placer/SimpleBlockPlacer.mapping @@ -1 +1,3 @@ CLASS net/minecraft/class_4633 net/minecraft/world/gen/placer/SimpleBlockPlacer + FIELD field_24870 CODEC Lcom/mojang/serialization/Codec; + FIELD field_24871 INSTANCE Lnet/minecraft/class_4633;