Skip to content

Commit

Permalink
refactor: util package
Browse files Browse the repository at this point in the history
  • Loading branch information
ShermansWorld committed Apr 6, 2024
1 parent 75fd2b3 commit 1c4a8c7
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import java.util.UUID;

import com.github.alathra.siegeengines.config.Config;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.projectile.EntityProjectile;
import com.github.alathra.siegeengines.projectile.FireworkProjectile;
import com.github.alathra.siegeengines.projectile.SiegeEngineProjectile;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.SiegeEnginesLogger;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.crafting.CraftingRecipes;
import com.github.alathra.siegeengines.data.SiegeEnginesData;
import com.github.alathra.siegeengines.projectile.EntityProjectile;
Expand All @@ -25,6 +24,7 @@
import com.github.alathra.siegeengines.projectile.PotionProjectile;
import com.github.alathra.siegeengines.projectile.ProjectileType;
import com.github.alathra.siegeengines.projectile.SiegeEngineProjectile;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

@SuppressWarnings("deprecation")
public class Config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
import org.bukkit.event.entity.ProjectileHitEvent;

import com.github.alathra.siegeengines.SiegeEnginesLogger;
import com.github.alathra.siegeengines.Util.GeneralUtil;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.config.Config;
import com.github.alathra.siegeengines.data.SiegeEnginesData;
import com.github.alathra.siegeengines.projectile.ExplosiveProjectile;
import com.github.alathra.siegeengines.util.GeneralUtil;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

public class SiegeEngineDamagedListener implements Listener {
@EventHandler(priority = EventPriority.HIGH)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

import com.github.alathra.siegeengines.SiegeEngine;
import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.data.SiegeEnginesData;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

public class SiegeEngineDeathListener implements Listener {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

import com.github.alathra.siegeengines.SiegeEngine;
import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.config.Config;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

public class SiegeEngineFireListener implements Listener {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

import com.github.alathra.siegeengines.SiegeEngine;
import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.config.Config;
import com.github.alathra.siegeengines.data.SiegeEnginesData;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

public class SiegeEngineInteractListener implements Listener {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.alathra.siegeengines.projectile;

import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

import org.bukkit.Bukkit;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.github.alathra.siegeengines.projectile;

import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.data.SiegeEnginesData;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.alathra.siegeengines.projectile;

import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

import org.bukkit.Bukkit;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.alathra.siegeengines.projectile;

import com.github.alathra.siegeengines.SiegeEngines;
import com.github.alathra.siegeengines.Util.SiegeEnginesUtil;
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;

import org.bukkit.Bukkit;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.alathra.siegeengines.Util;
package com.github.alathra.siegeengines.util;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.github.alathra.siegeengines.util;

public class MessageUtil {

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.alathra.siegeengines.Util;
package com.github.alathra.siegeengines.util;

import java.util.ArrayList;
import java.util.HashSet;
Expand Down

0 comments on commit 1c4a8c7

Please sign in to comment.