From 12f658ebd96d9d52f04cf6d7df983f3e9d73f006 Mon Sep 17 00:00:00 2001 From: gniftygnome Date: Wed, 27 Mar 2024 14:48:57 -0700 Subject: [PATCH] Update to 24w13a. - Update to 24w13a - Upgrade to Biolith 2 --- .../feature/placer/FallenTrunkPlacer.java | 4 ++-- .../feature/placer/NoneFoliagePlacer.java | 4 ++-- gradle.properties | 20 +++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/common/src/main/java/com/terraformersmc/traverse/feature/placer/FallenTrunkPlacer.java b/common/src/main/java/com/terraformersmc/traverse/feature/placer/FallenTrunkPlacer.java index 2d977ca..2952a85 100644 --- a/common/src/main/java/com/terraformersmc/traverse/feature/placer/FallenTrunkPlacer.java +++ b/common/src/main/java/com/terraformersmc/traverse/feature/placer/FallenTrunkPlacer.java @@ -2,7 +2,7 @@ import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; -import com.mojang.serialization.Codec; +import com.mojang.serialization.MapCodec; import com.mojang.serialization.codecs.RecordCodecBuilder; import net.minecraft.block.BlockState; @@ -21,7 +21,7 @@ import java.util.function.BiConsumer; public class FallenTrunkPlacer extends StraightTrunkPlacer { - public static final Codec CODEC = RecordCodecBuilder.create((instance) -> fillTrunkPlacerFields(instance).apply(instance, FallenTrunkPlacer::new)); + public static final MapCodec CODEC = RecordCodecBuilder.mapCodec((instance) -> fillTrunkPlacerFields(instance).apply(instance, FallenTrunkPlacer::new)); public FallenTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight) { super(baseHeight, firstRandomHeight, secondRandomHeight); diff --git a/common/src/main/java/com/terraformersmc/traverse/feature/placer/NoneFoliagePlacer.java b/common/src/main/java/com/terraformersmc/traverse/feature/placer/NoneFoliagePlacer.java index a628ef6..ff363d6 100644 --- a/common/src/main/java/com/terraformersmc/traverse/feature/placer/NoneFoliagePlacer.java +++ b/common/src/main/java/com/terraformersmc/traverse/feature/placer/NoneFoliagePlacer.java @@ -1,6 +1,6 @@ package com.terraformersmc.traverse.feature.placer; -import com.mojang.serialization.Codec; +import com.mojang.serialization.MapCodec; import com.mojang.serialization.codecs.RecordCodecBuilder; import net.minecraft.util.math.intprovider.ConstantIntProvider; @@ -11,7 +11,7 @@ import net.minecraft.world.gen.foliage.FoliagePlacerType; public class NoneFoliagePlacer extends FoliagePlacer { - public static final Codec CODEC = RecordCodecBuilder.create((instance) -> fillFoliagePlacerFields(instance).apply(instance, (uniformIntDistribution, uniformIntDistribution2) -> new NoneFoliagePlacer())); + public static final MapCodec CODEC = RecordCodecBuilder.mapCodec((instance) -> fillFoliagePlacerFields(instance).apply(instance, (uniformIntDistribution, uniformIntDistribution2) -> new NoneFoliagePlacer())); public NoneFoliagePlacer() { super(ConstantIntProvider.create(0), ConstantIntProvider.create(0)); diff --git a/gradle.properties b/gradle.properties index 5032ef5..5f10768 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,18 +4,18 @@ fabric.loom.multiProjectOptimisation=true maven_group=com.terraformersmc archive_name=traverse -minecraft_version=24w11a -yarn_mappings=24w11a+build.2 +minecraft_version=24w13a +yarn_mappings=24w13a+build.2 loader_version=0.15.7 -fabric_version=0.96.10+1.20.5 -terraform_biome_remapper_api_version=10.0.0-alpha.7 -terraform_config_api_version=10.0.0-alpha.7 -terraform_surfaces_api_version=10.0.0-alpha.7 -terraform_tree_api_version=10.0.0-alpha.7 -terraform_wood_api_version=10.0.0-alpha.7 +fabric_version=0.96.13+1.20.5 +terraform_biome_remapper_api_version=10.0.0-alpha.8 +terraform_config_api_version=10.0.0-alpha.8 +terraform_surfaces_api_version=10.0.0-alpha.8 +terraform_tree_api_version=10.0.0-alpha.8 +terraform_wood_api_version=10.0.0-alpha.8 # Biolith for worldgen module and testing -biolith_version=1.3.0-alpha.2 +biolith_version=2.1.0-alpha.1 # TerraBlender for worldgen module and testing terrablender_version=1.20.4-3.3.0.12 @@ -38,7 +38,7 @@ curseforge_optional_dependencies= # Modrinth Metadata modrinth_slug=traverse modrinth_id=kXygSBVI -modrinth_game_versions=24w11a +modrinth_game_versions=24w13a modrinth_mod_loaders=fabric, quilt modrinth_required_dependencies=fabric-api #modrinth_embedded_dependencies=biolith