mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-05-20 00:30:20 +00:00
Change Java whitespace handling in .editorconfig (#425)
* Change whitespace handling in .editorconfig * Reformat code * fix format error * Reformat code --------- Co-authored-by: Zoë Gidiere <duplexsys@protonmail.com>
This commit is contained in:
+8
-8
@@ -15,16 +15,16 @@ public class PaletteBlockShortcutAddon implements AddonInitializer {
|
||||
private BaseAddon addon;
|
||||
@Inject
|
||||
private Platform platform;
|
||||
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
platform.getEventManager()
|
||||
.getHandler(FunctionalEventHandler.class)
|
||||
.register(addon, ConfigPackPreLoadEvent.class)
|
||||
.then(event -> event.getPack()
|
||||
.registerShortcut(Palette.class, "BLOCK",
|
||||
(configLoader, input, tracker) -> new SingletonPalette(
|
||||
configLoader.loadType(BlockState.class, input, tracker))))
|
||||
.failThrough();
|
||||
.getHandler(FunctionalEventHandler.class)
|
||||
.register(addon, ConfigPackPreLoadEvent.class)
|
||||
.then(event -> event.getPack()
|
||||
.registerShortcut(Palette.class, "BLOCK",
|
||||
(configLoader, input, tracker) -> new SingletonPalette(
|
||||
configLoader.loadType(BlockState.class, input, tracker))))
|
||||
.failThrough();
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -6,11 +6,11 @@ import com.dfsek.terra.api.world.chunk.generation.util.Palette;
|
||||
|
||||
public class SingletonPalette implements Palette {
|
||||
private final BlockState blockState;
|
||||
|
||||
|
||||
public SingletonPalette(BlockState blockState) {
|
||||
this.blockState = blockState;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public BlockState get(int layer, double x, double y, double z, long seed) {
|
||||
return blockState;
|
||||
|
||||
Reference in New Issue
Block a user