Skip to content

Commit

Permalink
chore: Optimize imports
Browse files Browse the repository at this point in the history
Signed-off-by: Awakened-Redstone <[email protected]>
  • Loading branch information
Awakened-Redstone committed May 14, 2024
1 parent 68cd497 commit abb4bda
Show file tree
Hide file tree
Showing 80 changed files with 200 additions and 251 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/awakenedredstone/neoskies/SkylandsMain.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package com.awakenedredstone.neoskies;

import com.awakenedredstone.neoskies.command.SkylandsCommands;
import com.awakenedredstone.neoskies.font.FontManager;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.logic.SkylandsEventListeners;
import com.awakenedredstone.neoskies.logic.registry.NeoSkiesIslandSettings;
import com.awakenedredstone.neoskies.logic.registry.SkylandsPermissionLevels;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.fabricmc.api.ModInitializer;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.Identifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.awakenedredstone.neoskies.command.SkylandsCommands;
import com.awakenedredstone.neoskies.font.FontManager;
import com.awakenedredstone.neoskies.logic.SkylandsEventListeners;
import com.awakenedredstone.neoskies.logic.registry.NeoSkiesIslandSettings;
import com.awakenedredstone.neoskies.logic.registry.SkylandsPermissionLevels;

import java.util.HashSet;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package com.awakenedredstone.neoskies.api;

import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Constants;
import eu.pb4.common.economy.api.EconomyAccount;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.registry.RegistryKey;
import net.minecraft.world.World;
import org.jetbrains.annotations.Nullable;
import com.awakenedredstone.neoskies.SkylandsMain;
import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Constants;

import java.util.Optional;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.awakenedredstone.neoskies.api.events;

import com.awakenedredstone.neoskies.logic.Island;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.world.World;
import com.awakenedredstone.neoskies.logic.Island;

public interface IslandEvents {
Event<HubVisitEvent> ON_HUB_VISIT = EventFactory.createArrayBacked(HubVisitEvent.class, callbacks -> (player, world) -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.awakenedredstone.neoskies.api.island;

public class DefaultPermissionLevel extends PermissionLevel {

public DefaultPermissionLevel(int level) {
super(level);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.awakenedredstone.neoskies.api.island;

import com.awakenedredstone.neoskies.logic.SkylandsRegistries;
import com.awakenedredstone.neoskies.logic.registry.SkylandsRegistries;
import net.minecraft.util.Identifier;

import java.util.concurrent.atomic.AtomicReference;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.awakenedredstone.neoskies.command;

import com.awakenedredstone.neoskies.config.MainConfig;
import com.awakenedredstone.neoskies.SkylandsMain;
import com.awakenedredstone.neoskies.command.admin.*;
import com.awakenedredstone.neoskies.command.island.*;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.ServerCommandSource;
import com.awakenedredstone.neoskies.SkylandsMain;
import com.awakenedredstone.neoskies.command.admin.*;
import com.awakenedredstone.neoskies.command.island.*;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.Text;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package com.awakenedredstone.neoskies.command.admin;

import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.command.utils.CommandUtils;
import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.util.MapBuilder;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.LongArgumentType;
import com.mojang.brigadier.arguments.StringArgumentType;
Expand All @@ -9,17 +13,13 @@
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.minecraft.server.command.ServerCommandSource;
import org.jetbrains.annotations.Nullable;
import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.command.utils.CommandUtils;
import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.util.Texts;

import java.util.UUID;

import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.adminNode;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.registerAdmin;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;

public class BallanceCommand {
public static void init(CommandDispatcher<ServerCommandSource> dispatcher) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.awakenedredstone.neoskies.command.admin;

import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.minecraft.server.command.ServerCommandSource;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.adminNode;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.registerAdmin;
import static com.mojang.brigadier.arguments.StringArgumentType.word;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.adminNode;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.registerAdmin;

public class DeleteIslandCommand {
public static void init(CommandDispatcher<ServerCommandSource> dispatcher) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package com.awakenedredstone.neoskies.command.admin;

import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.command.utils.CommandUtils;
import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.MapBuilder;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.minecraft.server.command.ServerCommandSource;
import org.jetbrains.annotations.Nullable;
import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.command.utils.CommandUtils;
import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.adminNode;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.registerAdmin;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;

public class IslandDataCommand {
public static void init(CommandDispatcher<ServerCommandSource> dispatcher) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
import com.mojang.brigadier.context.CommandContext;
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.GameRuleCommand;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.text.Text;
import net.minecraft.world.GameRules;
import org.jetbrains.annotations.Nullable;

import java.io.IOException;
import java.util.UUID;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package com.awakenedredstone.neoskies.command.admin;

import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.minecraft.server.command.ServerCommandSource;
import com.awakenedredstone.neoskies.SkylandsMain;
import com.awakenedredstone.neoskies.util.Texts;
import net.minecraft.text.Text;

import static net.minecraft.server.command.CommandManager.literal;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.adminNode;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.registerAdmin;
import static net.minecraft.server.command.CommandManager.literal;

public class SettingsCommand {
public static void init(CommandDispatcher<ServerCommandSource> dispatcher) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package com.awakenedredstone.neoskies.command.island;

import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Players;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Players;
import com.awakenedredstone.neoskies.util.Texts;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
import static com.mojang.brigadier.arguments.StringArgumentType.word;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
import static net.minecraft.server.command.CommandManager.literal;

public class AcceptCommand {
public static void init(CommandDispatcher<ServerCommandSource> dispatcher) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package com.awakenedredstone.neoskies.command.island;

import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.logic.Member;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.minecraft.command.argument.EntityArgumentType;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.logic.Member;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
import static com.mojang.brigadier.arguments.StringArgumentType.word;
import static net.minecraft.command.argument.EntityArgumentType.player;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
import static net.minecraft.server.command.CommandManager.literal;

public class BanCommands {
public static void init(CommandDispatcher<ServerCommandSource> dispatcher) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package com.awakenedredstone.neoskies.command.island;

import com.mojang.brigadier.CommandDispatcher;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.logic.IslandStuck;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.node;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.register;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.requiresNoIsland;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
import static net.minecraft.server.command.CommandManager.literal;

public class CreateCommand {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
package com.awakenedredstone.neoskies.command.island;

import com.awakenedredstone.neoskies.command.utils.CommandUtils;
import com.awakenedredstone.neoskies.logic.IslandStuck;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import com.awakenedredstone.neoskies.logic.IslandStuck;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;

import java.time.Instant;
import java.time.temporal.ChronoUnit;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.mustBeIslandOwner;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.node;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.register;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
import static com.mojang.brigadier.arguments.StringArgumentType.word;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.Language;

import static net.minecraft.server.command.CommandManager.literal;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.node;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.register;
import static net.minecraft.server.command.CommandManager.literal;

public class HelpCommand {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
package com.awakenedredstone.neoskies.command.island;

import com.awakenedredstone.neoskies.SkylandsMain;
import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.logic.Island;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import com.awakenedredstone.neoskies.SkylandsMain;
import com.awakenedredstone.neoskies.util.Texts;

import java.util.Optional;

import static net.minecraft.server.command.CommandManager.literal;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.node;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.register;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.requiresIsland;
import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
import static net.minecraft.server.command.CommandManager.literal;

public class HomeCommand {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.awakenedredstone.neoskies.command.island;

import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.minecraft.command.argument.BlockPosArgumentType;
Expand All @@ -8,8 +10,6 @@
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
import static net.minecraft.command.argument.BlockPosArgumentType.blockPos;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package com.awakenedredstone.neoskies.command.island;

import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;
import com.mojang.brigadier.CommandDispatcher;
import net.minecraft.command.argument.EntityArgumentType;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import com.awakenedredstone.neoskies.api.SkylandsAPI;
import com.awakenedredstone.neoskies.logic.Skylands;
import com.awakenedredstone.neoskies.util.Texts;

import static com.awakenedredstone.neoskies.command.utils.CommandUtils.*;
import static net.minecraft.command.argument.EntityArgumentType.player;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
import static net.minecraft.server.command.CommandManager.literal;

public class KickCommand {

Expand Down
Loading

0 comments on commit abb4bda

Please sign in to comment.