mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-26 20:16:18 +01:00
refactor: Optimize imports in all classes
This commit is contained in:
parent
c68c419f4f
commit
519194e414
@ -2,7 +2,6 @@ package com.craftaro.core.data;
|
||||
|
||||
import org.jooq.DSLContext;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public interface DatabaseConnector {
|
||||
|
@ -1,8 +1,6 @@
|
||||
package com.craftaro.core.data;
|
||||
|
||||
import org.jooq.DSLContext;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.impl.DSL;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
@ -2,11 +2,8 @@ package com.craftaro.core.data;
|
||||
|
||||
import org.jooq.DSLContext;
|
||||
import org.jooq.Query;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Result;
|
||||
import org.jooq.ResultQuery;
|
||||
import org.jooq.SelectSelectStep;
|
||||
import org.jooq.UpdateReturningStep;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
|
@ -4,10 +4,6 @@ import com.craftaro.core.utils.ItemSerializer;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.UUID;
|
||||
|
||||
public class StoredData {
|
||||
|
@ -4,7 +4,6 @@ import com.craftaro.core.data.DatabaseConnector;
|
||||
import com.craftaro.core.data.DatabaseManager;
|
||||
import com.zaxxer.hikari.HikariConfig;
|
||||
import com.zaxxer.hikari.HikariDataSource;
|
||||
import org.jooq.DSLContext;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.impl.DSL;
|
||||
|
||||
|
@ -3,7 +3,6 @@ package com.craftaro.core.database;
|
||||
import com.craftaro.core.SongodaPlugin;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.Blob;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DatabaseMetaData;
|
||||
import java.sql.ResultSet;
|
||||
|
@ -1,12 +1,19 @@
|
||||
package com.craftaro.core.gui;
|
||||
|
||||
import com.craftaro.core.compatibility.ServerVersion;
|
||||
import com.craftaro.core.gui.events.*;
|
||||
import com.craftaro.core.gui.methods.*;
|
||||
import com.craftaro.core.gui.events.GuiClickEvent;
|
||||
import com.craftaro.core.gui.events.GuiCloseEvent;
|
||||
import com.craftaro.core.gui.events.GuiDropItemEvent;
|
||||
import com.craftaro.core.gui.events.GuiOpenEvent;
|
||||
import com.craftaro.core.gui.events.GuiPageEvent;
|
||||
import com.craftaro.core.gui.methods.Clickable;
|
||||
import com.craftaro.core.gui.methods.Closable;
|
||||
import com.craftaro.core.gui.methods.Droppable;
|
||||
import com.craftaro.core.gui.methods.Openable;
|
||||
import com.craftaro.core.gui.methods.Pagable;
|
||||
import com.craftaro.core.utils.ItemUtils;
|
||||
import com.cryptomorin.xseries.XMaterial;
|
||||
import com.cryptomorin.xseries.XSound;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.inventory.ClickType;
|
||||
@ -17,7 +24,11 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.craftaro.core.hooks.mcmmo;
|
||||
|
||||
import com.craftaro.core.SongodaPlugin;
|
||||
import com.craftaro.core.compatibility.ServerVersion;
|
||||
import com.gmail.nossr50.api.AbilityAPI;
|
||||
import com.gmail.nossr50.api.ExperienceAPI;
|
||||
import com.gmail.nossr50.config.experience.ExperienceConfig;
|
||||
@ -13,7 +14,6 @@ import com.gmail.nossr50.util.player.UserManager;
|
||||
import com.gmail.nossr50.util.random.RandomChanceUtil;
|
||||
import com.gmail.nossr50.util.skills.RankUtils;
|
||||
import com.gmail.nossr50.util.skills.SkillActivationType;
|
||||
import com.craftaro.core.compatibility.ServerVersion;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockState;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.lootables.gui;
|
||||
|
||||
import com.craftaro.core.lootables.loot.Loot;
|
||||
import com.craftaro.core.gui.Gui;
|
||||
import com.craftaro.core.lootables.loot.Loot;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.craftaro.core.thread;
|
||||
|
||||
import com.craftaro.core.SongodaPlugin;
|
||||
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
@ -1,11 +1,11 @@
|
||||
package com.craftaro.core.world;
|
||||
|
||||
import com.craftaro.core.nms.world.NmsWorldBorder;
|
||||
import com.craftaro.core.utils.NMSUtils;
|
||||
import com.craftaro.core.compatibility.ClassMapping;
|
||||
import com.craftaro.core.compatibility.MethodMapping;
|
||||
import com.craftaro.core.compatibility.ServerVersion;
|
||||
import com.craftaro.core.nms.Nms;
|
||||
import com.craftaro.core.nms.world.NmsWorldBorder;
|
||||
import com.craftaro.core.utils.NMSUtils;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_10_R1.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_10_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_10_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_11_R1.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_11_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_11_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_16_R1.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_16_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_16_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_16_R2.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_16_R2.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_16_R2.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_16_R3.world.spawner;
|
||||
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import net.minecraft.server.v1_16_R3.AxisAlignedBB;
|
||||
import net.minecraft.server.v1_16_R3.BlockPosition;
|
||||
import net.minecraft.server.v1_16_R3.Entity;
|
||||
|
@ -1,11 +1,11 @@
|
||||
package com.craftaro.core.nms.v1_17_R1;
|
||||
|
||||
import com.craftaro.core.nms.entity.NmsEntity;
|
||||
import com.craftaro.core.nms.v1_17_R1.anvil.AnvilCore;
|
||||
import com.craftaro.core.nms.v1_17_R1.entity.NMSPlayerImpl;
|
||||
import com.craftaro.core.nms.NmsImplementations;
|
||||
import com.craftaro.core.nms.entity.NMSPlayer;
|
||||
import com.craftaro.core.nms.entity.NmsEntity;
|
||||
import com.craftaro.core.nms.nbt.NBTCore;
|
||||
import com.craftaro.core.nms.v1_17_R1.anvil.AnvilCore;
|
||||
import com.craftaro.core.nms.v1_17_R1.entity.NMSPlayerImpl;
|
||||
import com.craftaro.core.nms.v1_17_R1.entity.NmsEntityImpl;
|
||||
import com.craftaro.core.nms.v1_17_R1.nbt.NBTCoreImpl;
|
||||
import com.craftaro.core.nms.v1_17_R1.world.NmsWorldBorderImpl;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_17_R1.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_17_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_17_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_19_R1.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_19_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_19_R1.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_19_R3.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_19_R3.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_19_R3.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_8_R3.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_8_R3.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_8_R3.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.core.nms.v1_9_R2.world;
|
||||
|
||||
import com.craftaro.core.nms.v1_9_R2.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.ReflectionUtils;
|
||||
import com.craftaro.core.nms.v1_9_R2.world.spawner.BBaseSpawnerImpl;
|
||||
import com.craftaro.core.nms.world.BBaseSpawner;
|
||||
import com.craftaro.core.nms.world.SItemStack;
|
||||
import com.craftaro.core.nms.world.SSpawner;
|
||||
|
Loading…
Reference in New Issue
Block a user