Skip to content

Commit

Permalink
spotlessApply (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub GTNH Actions <>
  • Loading branch information
github-actions[bot] authored Feb 24, 2024
1 parent 61d6385 commit 63be1b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/main/java/twilightforest/world/DefaultOrePlacer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/twilightforest/world/OrePlacer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
import net.minecraft.world.World;

public interface OrePlacer {

boolean placeOre(World world, int x, int y, int z, Block block);
}
17 changes: 9 additions & 8 deletions src/main/java/twilightforest/world/StalactiteOreGen.java
Original file line number Diff line number Diff line change
@@ -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<OrePlacer> orePlacers =
new LinkedList<>(ImmutableList.of(new DefaultOrePlacer()));

private static final List<OrePlacer> 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.
* <p>
* The OrePlacer must NOT have any side effects if it returns false.
*
Expand Down

0 comments on commit 63be1b8

Please sign in to comment.