From 63be1b8418f4f89bf72a585e7a6fd68bc832f3aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 24 Feb 2024 05:04:58 +0100 Subject: [PATCH] spotlessApply (#42) Co-authored-by: GitHub GTNH Actions <> --- .../twilightforest/world/DefaultOrePlacer.java | 1 + .../java/twilightforest/world/OrePlacer.java | 1 + .../twilightforest/world/StalactiteOreGen.java | 17 +++++++++-------- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/twilightforest/world/DefaultOrePlacer.java b/src/main/java/twilightforest/world/DefaultOrePlacer.java index 8d7212986c..f863cd6872 100644 --- a/src/main/java/twilightforest/world/DefaultOrePlacer.java +++ b/src/main/java/twilightforest/world/DefaultOrePlacer.java @@ -4,6 +4,7 @@ import net.minecraft.world.World; class DefaultOrePlacer implements OrePlacer { + @Override public boolean placeOre(World world, int x, int y, int z, Block block) { // Set the block without block updates. diff --git a/src/main/java/twilightforest/world/OrePlacer.java b/src/main/java/twilightforest/world/OrePlacer.java index 043de7cf20..8d737a57be 100644 --- a/src/main/java/twilightforest/world/OrePlacer.java +++ b/src/main/java/twilightforest/world/OrePlacer.java @@ -4,5 +4,6 @@ import net.minecraft.world.World; public interface OrePlacer { + boolean placeOre(World world, int x, int y, int z, Block block); } diff --git a/src/main/java/twilightforest/world/StalactiteOreGen.java b/src/main/java/twilightforest/world/StalactiteOreGen.java index 1279c3129f..38403a1ae4 100644 --- a/src/main/java/twilightforest/world/StalactiteOreGen.java +++ b/src/main/java/twilightforest/world/StalactiteOreGen.java @@ -1,20 +1,21 @@ package twilightforest.world; -import com.google.common.collect.ImmutableList; -import net.minecraft.block.Block; -import net.minecraft.world.World; - import java.util.Iterator; import java.util.LinkedList; import java.util.List; +import net.minecraft.block.Block; +import net.minecraft.world.World; + +import com.google.common.collect.ImmutableList; + public class StalactiteOreGen { - private static final List orePlacers = - new LinkedList<>(ImmutableList.of(new DefaultOrePlacer())); + + private static final List orePlacers = new LinkedList<>(ImmutableList.of(new DefaultOrePlacer())); /** - * Add an ore placing handler that will return true when it determines it - * wants to override the default ore placing behavior. + * Add an ore placing handler that will return true when it determines it wants to override the default ore placing + * behavior. *

* The OrePlacer must NOT have any side effects if it returns false. *