mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +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:
+2
-2
@@ -11,11 +11,11 @@ import com.dfsek.terra.api.world.WritableWorld;
|
||||
|
||||
public class SingletonStructure implements Structure {
|
||||
private final BlockState blockState;
|
||||
|
||||
|
||||
public SingletonStructure(BlockState blockState) {
|
||||
this.blockState = blockState;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean generate(Vector3Int location, WritableWorld world, Random random, Rotation rotation) {
|
||||
world.setBlockState(location, blockState);
|
||||
|
||||
+9
-9
@@ -15,17 +15,17 @@ public class StructureBlockShortcutAddon 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(Structure.class, "BLOCK",
|
||||
(configLoader, input, tracker) -> new SingletonStructure(
|
||||
configLoader.loadType(BlockState.class, input, tracker)
|
||||
)))
|
||||
.failThrough();
|
||||
.getHandler(FunctionalEventHandler.class)
|
||||
.register(addon, ConfigPackPreLoadEvent.class)
|
||||
.then(event -> event.getPack()
|
||||
.registerShortcut(Structure.class, "BLOCK",
|
||||
(configLoader, input, tracker) -> new SingletonStructure(
|
||||
configLoader.loadType(BlockState.class, input, tracker)
|
||||
)))
|
||||
.failThrough();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user