From 94a8a132d442b75e42670e29935e9f2fb96fd179 Mon Sep 17 00:00:00 2001 From: FirstMegaGame4 <84094287+FirstMegaGame4@users.noreply.github.com> Date: Tue, 5 Dec 2023 19:57:05 +0100 Subject: [PATCH] Rename CustomMossPatchFeature To CustomVegetationPatchFeature Change AdvancedItemSettings --- .../library/items/settings/AdvancedItemSettings.java | 4 ++++ ...tchFeature.java => CustomVegetationPatchFeature.java} | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) rename src/main/java/com/mmodding/mmodding_lib/library/worldgen/features/defaults/{CustomMossPatchFeature.java => CustomVegetationPatchFeature.java} (89%) diff --git a/src/main/java/com/mmodding/mmodding_lib/library/items/settings/AdvancedItemSettings.java b/src/main/java/com/mmodding/mmodding_lib/library/items/settings/AdvancedItemSettings.java index c5d3245..cff2b05 100644 --- a/src/main/java/com/mmodding/mmodding_lib/library/items/settings/AdvancedItemSettings.java +++ b/src/main/java/com/mmodding/mmodding_lib/library/items/settings/AdvancedItemSettings.java @@ -39,6 +39,10 @@ public AdvancedItemSettings descriptionLines(Text... descriptionLines) { return this.customSetting(DESCRIPTION_LINES, descriptionLines); } + public AdvancedItemSettings glint() { + return this.glint(true); + } + public AdvancedItemSettings glint(boolean glint) { return this.glint(stack -> glint); } diff --git a/src/main/java/com/mmodding/mmodding_lib/library/worldgen/features/defaults/CustomMossPatchFeature.java b/src/main/java/com/mmodding/mmodding_lib/library/worldgen/features/defaults/CustomVegetationPatchFeature.java similarity index 89% rename from src/main/java/com/mmodding/mmodding_lib/library/worldgen/features/defaults/CustomMossPatchFeature.java rename to src/main/java/com/mmodding/mmodding_lib/library/worldgen/features/defaults/CustomVegetationPatchFeature.java index 8236486..dbc5728 100644 --- a/src/main/java/com/mmodding/mmodding_lib/library/worldgen/features/defaults/CustomMossPatchFeature.java +++ b/src/main/java/com/mmodding/mmodding_lib/library/worldgen/features/defaults/CustomVegetationPatchFeature.java @@ -17,7 +17,6 @@ import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.RegistryKey; import net.minecraft.world.gen.GenerationStep; -import net.minecraft.world.gen.YOffset; import net.minecraft.world.gen.blockpredicate.BlockPredicate; import net.minecraft.world.gen.decorator.*; import net.minecraft.world.gen.feature.*; @@ -27,13 +26,11 @@ import org.quiltmc.qsl.worldgen.biome.api.BiomeModifications; import org.quiltmc.qsl.worldgen.biome.api.BiomeSelectionContext; -import java.util.ArrayList; -import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Predicate; -public class CustomMossPatchFeature implements CustomFeature, FeatureRegistrable { +public class CustomVegetationPatchFeature implements CustomFeature, FeatureRegistrable { private final AtomicBoolean registered = new AtomicBoolean(); private final AtomicReference identifier = new AtomicReference<>(); @@ -53,7 +50,7 @@ public class CustomMossPatchFeature implements CustomFeature, FeatureRegistrable private final IntProvider horizontalRadius; private final float extraEdgeColumnChance; - public CustomMossPatchFeature(int count, Direction searchDirection, int maxSteps, TagKey replaceable, BlockState ground, BiList vegetationStates, VerticalSurfaceType verticalSurfaceType, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider horizontalRadius, float extraEdgeColumnChance) { + public CustomVegetationPatchFeature(int count, Direction searchDirection, int maxSteps, TagKey replaceable, BlockState ground, BiList vegetationStates, VerticalSurfaceType verticalSurfaceType, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider horizontalRadius, float extraEdgeColumnChance) { this.count = count; this.searchDirection = searchDirection; this.maxSteps = maxSteps; @@ -112,7 +109,7 @@ public PlacedFeature getDefaultPlacedFeature() { return this.createPlacedFeature(this.count, this.searchDirection, this.maxSteps); } - public CustomMossPatchFeature addPlacedFeature(int count, Direction searchDirection, int maxSteps, String idExt) { + public CustomVegetationPatchFeature addPlacedFeature(int count, Direction searchDirection, int maxSteps, String idExt) { this.additionalPlacedFeatures.add(this.createPlacedFeature(count, searchDirection, maxSteps), idExt); return this; }