Skip to content

Commit

Permalink
Rename CustomMossPatchFeature To CustomVegetationPatchFeature
Browse files Browse the repository at this point in the history
Change AdvancedItemSettings
  • Loading branch information
FirstMegaGame4 committed Dec 5, 2023
1 parent c105b9c commit 94a8a13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand All @@ -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> identifier = new AtomicReference<>();
Expand All @@ -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<Block> replaceable, BlockState ground, BiList<BlockState, Integer> vegetationStates, VerticalSurfaceType verticalSurfaceType, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider horizontalRadius, float extraEdgeColumnChance) {
public CustomVegetationPatchFeature(int count, Direction searchDirection, int maxSteps, TagKey<Block> replaceable, BlockState ground, BiList<BlockState, Integer> vegetationStates, VerticalSurfaceType verticalSurfaceType, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider horizontalRadius, float extraEdgeColumnChance) {
this.count = count;
this.searchDirection = searchDirection;
this.maxSteps = maxSteps;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 94a8a13

Please sign in to comment.