Skip to content

Commit

Permalink
chore: organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
xCykrix committed Apr 17, 2024
1 parent 74dca54 commit 0826673
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.github.xcykrix.dynamiclights;

import org.bukkit.entity.Player;

import com.comphenix.protocol.utility.MinecraftVersion;
import com.github.xcykrix.dynamiclights.module.DynamicLightCommand;
import com.github.xcykrix.dynamiclights.util.LightManager;
import com.github.xcykrix.dynamiclights.util.LightSources;
import com.github.xcykrix.plugincommon.PluginCommon;
import com.github.xcykrix.plugincommon.api.records.Resource;
import org.bukkit.entity.Player;

public final class DynamicLights extends PluginCommon {
private LightManager lightManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package com.github.xcykrix.dynamiclights.module;

import java.io.IOException;

import org.apache.commons.lang3.exception.ExceptionUtils;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import com.github.xcykrix.dynamiclights.module.events.PlayerHandlerEvent;
import com.github.xcykrix.dynamiclights.util.LightManager;
import com.github.xcykrix.dynamiclights.util.LightSources;
Expand All @@ -8,13 +14,11 @@
import com.github.xcykrix.plugincommon.extendables.implement.Initialize;
import com.shaded._100.aikar.commands.BaseCommand;
import com.shaded._100.aikar.commands.CommandHelp;
import com.shaded._100.aikar.commands.annotation.*;

import java.io.IOException;

import org.apache.commons.lang3.exception.ExceptionUtils;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.shaded._100.aikar.commands.annotation.CommandAlias;
import com.shaded._100.aikar.commands.annotation.CommandPermission;
import com.shaded._100.aikar.commands.annotation.Description;
import com.shaded._100.aikar.commands.annotation.HelpCommand;
import com.shaded._100.aikar.commands.annotation.Subcommand;

@CommandAlias("dynamiclights|dynamiclight|dl")
public class DynamicLightCommand extends BaseCommand implements Initialize {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package com.github.xcykrix.dynamiclights.module.events;

import com.github.xcykrix.dynamiclights.util.LightManager;
import com.github.xcykrix.plugincommon.PluginCommon;
import com.github.xcykrix.plugincommon.api.helper.configuration.LanguageFile;
import com.github.xcykrix.plugincommon.extendables.Stateful;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
Expand All @@ -12,6 +8,11 @@
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.EquipmentSlot;

import com.github.xcykrix.dynamiclights.util.LightManager;
import com.github.xcykrix.plugincommon.PluginCommon;
import com.github.xcykrix.plugincommon.api.helper.configuration.LanguageFile;
import com.github.xcykrix.plugincommon.extendables.Stateful;

public class PlayerHandlerEvent extends Stateful implements Listener {
private final LightManager lightManager;
private final LanguageFile languageFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.github.xcykrix.dynamiclights.util;

import com.github.xcykrix.plugincommon.PluginCommon;
import com.github.xcykrix.plugincommon.extendables.Stateful;
import com.github.xcykrix.plugincommon.extendables.implement.Shutdown;
import com.shaded._100.org.h2.mvstore.MVMap;
import java.util.HashMap;
import java.util.UUID;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
Expand All @@ -15,8 +14,10 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.scheduler.BukkitTask;

import java.util.HashMap;
import java.util.UUID;
import com.github.xcykrix.plugincommon.PluginCommon;
import com.github.xcykrix.plugincommon.extendables.Stateful;
import com.github.xcykrix.plugincommon.extendables.implement.Shutdown;
import com.shaded._100.org.h2.mvstore.MVMap;

public class LightManager extends Stateful implements Shutdown {
public LightSources lightSources;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.github.xcykrix.dynamiclights.util;

import com.github.xcykrix.plugincommon.PluginCommon;
import com.github.xcykrix.plugincommon.extendables.Stateful;
import com.shaded._100.dev.dejvokep.boostedyaml.YamlDocument;
import com.shaded._100.dev.dejvokep.boostedyaml.block.Block;

import org.bukkit.Material;

import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;

import org.bukkit.Material;

import com.github.xcykrix.plugincommon.PluginCommon;
import com.github.xcykrix.plugincommon.extendables.Stateful;
import com.shaded._100.dev.dejvokep.boostedyaml.YamlDocument;
import com.shaded._100.dev.dejvokep.boostedyaml.block.Block;

public class LightSources extends Stateful {
private final HashMap<Material, Integer> levelOfLights = new HashMap<>();
private final HashSet<Material> submersibleLights = new HashSet<>();
Expand Down

0 comments on commit 0826673

Please sign in to comment.