pick 97420a31d The big reformat of 2020

This commit is contained in:
yueh
2020-06-16 21:41:28 +02:00
parent 5304b3febe
commit 5225ea426b
2252 changed files with 95466 additions and 118582 deletions
+3 -5
View File
@@ -18,15 +18,14 @@
package appeng.server;
import static net.minecraft.command.Commands.literal;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import net.minecraft.command.CommandSource;
import net.minecraftforge.fml.server.ServerLifecycleHooks;
import static net.minecraft.command.Commands.literal;
public final class AECommand {
public void register(CommandDispatcher<CommandSource> dispatcher) {
@@ -41,8 +40,7 @@ public final class AECommand {
private void add(LiteralArgumentBuilder<net.minecraft.command.CommandSource> builder, Commands subCommand) {
builder.then(literal(subCommand.name().toLowerCase())
.requires(src -> src.hasPermissionLevel(subCommand.level))
builder.then(literal(subCommand.name().toLowerCase()).requires(src -> src.hasPermissionLevel(subCommand.level))
.executes(ctx -> {
subCommand.command.call(ServerLifecycleHooks.getCurrentServer(), new String[0], ctx.getSource());
return 1;