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. *