diff --git a/NCPCompatBukkit/src/main/java/fr/neatmonster/nocheatplus/checks/inventory/HotFixFallingBlockPortalEnter.java b/NCPCompatBukkit/src/main/java/fr/neatmonster/nocheatplus/checks/inventory/HotFixFallingBlockPortalEnter.java index a1f0bffa..1a776f5f 100644 --- a/NCPCompatBukkit/src/main/java/fr/neatmonster/nocheatplus/checks/inventory/HotFixFallingBlockPortalEnter.java +++ b/NCPCompatBukkit/src/main/java/fr/neatmonster/nocheatplus/checks/inventory/HotFixFallingBlockPortalEnter.java @@ -26,10 +26,10 @@ import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityPortalEnterEvent; import fr.neatmonster.nocheatplus.NCPAPIProvider; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.compat.versions.ServerVersion; import fr.neatmonster.nocheatplus.logging.Streams; import fr.neatmonster.nocheatplus.utilities.ReflectionUtil; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockCache; import fr.neatmonster.nocheatplus.utilities.map.BlockProperties; import fr.neatmonster.nocheatplus.utilities.map.WrapBlockCache; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/BlockInteractListener.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/BlockInteractListener.java index a59f51f5..05f0ff6d 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/BlockInteractListener.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/BlockInteractListener.java @@ -30,11 +30,11 @@ import fr.neatmonster.nocheatplus.NCPAPIProvider; import fr.neatmonster.nocheatplus.checks.CheckListener; import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.combined.CombinedConfig; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.compat.Bridge1_9; import fr.neatmonster.nocheatplus.compat.BridgeHealth; import fr.neatmonster.nocheatplus.stats.Counters; import fr.neatmonster.nocheatplus.utilities.InventoryUtil; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockProperties; /** diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Direction.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Direction.java index ebe8c77e..c2ce85f3 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Direction.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Direction.java @@ -21,9 +21,9 @@ import org.bukkit.util.Vector; import fr.neatmonster.nocheatplus.checks.Check; import fr.neatmonster.nocheatplus.checks.CheckType; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.collision.CollideRayVsAABB; import fr.neatmonster.nocheatplus.utilities.collision.ICollideRayVsAABB; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; /** * The Direction check will find out if a player tried to interact with something that's not in their field of view. diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Visible.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Visible.java index 09c5c3ff..1f5fb6ba 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Visible.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockinteract/Visible.java @@ -27,11 +27,11 @@ import org.bukkit.util.Vector; import fr.neatmonster.nocheatplus.checks.Check; import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.ViolationData; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.checks.net.NetData; import fr.neatmonster.nocheatplus.checks.net.model.DataPacketFlying; import fr.neatmonster.nocheatplus.utilities.StringUtil; import fr.neatmonster.nocheatplus.utilities.collision.InteractRayTracing; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.TrigUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockCache; import fr.neatmonster.nocheatplus.utilities.map.WrapBlockCache; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java index f5d5e02c..d5316ea7 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/FightListener.java @@ -42,7 +42,6 @@ import fr.neatmonster.nocheatplus.checks.combined.Improbable; import fr.neatmonster.nocheatplus.checks.inventory.Items; import fr.neatmonster.nocheatplus.checks.moving.MovingConfig; import fr.neatmonster.nocheatplus.checks.moving.MovingData; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.checks.moving.location.tracking.LocationTrace; import fr.neatmonster.nocheatplus.checks.moving.location.tracking.LocationTrace.ITraceEntry; import fr.neatmonster.nocheatplus.checks.moving.model.LiftOffEnvelope; @@ -62,6 +61,7 @@ import fr.neatmonster.nocheatplus.permissions.Permissions; import fr.neatmonster.nocheatplus.stats.Counters; import fr.neatmonster.nocheatplus.utilities.TickTask; import fr.neatmonster.nocheatplus.utilities.build.BuildParameters; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.TrigUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockProperties; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java index 0a61ceb9..47625405 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java @@ -28,7 +28,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.access.ACheckData; import fr.neatmonster.nocheatplus.checks.access.CheckDataFactory; import fr.neatmonster.nocheatplus.checks.access.ICheckData; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.checks.moving.location.setback.DefaultSetBackStorage; import fr.neatmonster.nocheatplus.checks.moving.location.tracking.LocationTrace; import fr.neatmonster.nocheatplus.checks.moving.location.tracking.LocationTrace.TraceEntryPool; @@ -51,6 +50,7 @@ import fr.neatmonster.nocheatplus.utilities.CheckUtils; import fr.neatmonster.nocheatplus.utilities.TickTask; import fr.neatmonster.nocheatplus.utilities.ds.count.ActionAccumulator; import fr.neatmonster.nocheatplus.utilities.ds.count.ActionFrequency; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.PlayerLocation; import fr.neatmonster.nocheatplus.utilities.location.RichEntityLocation; import fr.neatmonster.nocheatplus.workaround.IWorkaroundRegistry.WorkaroundSet; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java index 711793b6..3826c29d 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java @@ -62,7 +62,6 @@ import fr.neatmonster.nocheatplus.checks.combined.BedLeave; import fr.neatmonster.nocheatplus.checks.combined.Combined; import fr.neatmonster.nocheatplus.checks.combined.CombinedConfig; import fr.neatmonster.nocheatplus.checks.combined.CombinedData; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.checks.moving.magic.Magic; import fr.neatmonster.nocheatplus.checks.moving.model.PlayerMoveData; import fr.neatmonster.nocheatplus.checks.moving.model.PlayerMoveInfo; @@ -111,6 +110,7 @@ import fr.neatmonster.nocheatplus.utilities.PotionUtil; import fr.neatmonster.nocheatplus.utilities.StringUtil; import fr.neatmonster.nocheatplus.utilities.TickTask; import fr.neatmonster.nocheatplus.utilities.build.BuildParameters; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.PlayerLocation; import fr.neatmonster.nocheatplus.utilities.location.TrigUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockProperties; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/location/setback/SetBackEntry.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/location/setback/SetBackEntry.java index e5dddad1..a439997e 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/location/setback/SetBackEntry.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/location/setback/SetBackEntry.java @@ -17,9 +17,9 @@ package fr.neatmonster.nocheatplus.checks.moving.location.setback; import org.bukkit.Location; import org.bukkit.World; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.components.location.IGetLocationWithLook; import fr.neatmonster.nocheatplus.components.location.ISetLocationWithLook; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; /** * Mutable location with timing and validity information. Not complex objects diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/LocationData.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/LocationData.java index 8484aeed..f24770cd 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/LocationData.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/LocationData.java @@ -14,8 +14,8 @@ */ package fr.neatmonster.nocheatplus.checks.moving.model; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.components.location.IGetLocationWithLook; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.RichBoundsLocation; /** diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java index 7d7676d6..73070797 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java @@ -26,11 +26,11 @@ import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.ViolationData; import fr.neatmonster.nocheatplus.checks.moving.MovingConfig; import fr.neatmonster.nocheatplus.checks.moving.MovingData; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.compat.blocks.changetracker.BlockChangeTracker; import fr.neatmonster.nocheatplus.utilities.collision.ICollidePassable; import fr.neatmonster.nocheatplus.utilities.collision.PassableAxisTracing; import fr.neatmonster.nocheatplus.utilities.collision.PassableRayTracing; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.PlayerLocation; import fr.neatmonster.nocheatplus.utilities.location.TrigUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockProperties; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/vehicle/VehicleChecks.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/vehicle/VehicleChecks.java index ab23e2b6..bba99d3d 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/vehicle/VehicleChecks.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/vehicle/VehicleChecks.java @@ -41,7 +41,6 @@ import fr.neatmonster.nocheatplus.checks.CheckListener; import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.moving.MovingConfig; import fr.neatmonster.nocheatplus.checks.moving.MovingData; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.checks.moving.location.setback.SetBackEntry; import fr.neatmonster.nocheatplus.checks.moving.model.MoveConsistency; import fr.neatmonster.nocheatplus.checks.moving.model.PlayerMoveData; @@ -61,6 +60,7 @@ import fr.neatmonster.nocheatplus.utilities.CheckUtils; import fr.neatmonster.nocheatplus.utilities.StringUtil; import fr.neatmonster.nocheatplus.utilities.TeleportUtil; import fr.neatmonster.nocheatplus.utilities.entity.PassengerUtil; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.RichBoundsLocation; import fr.neatmonster.nocheatplus.utilities.map.BlockProperties; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/model/DataLocation.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/model/DataLocation.java index c77fb9fb..bd066624 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/model/DataLocation.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/model/DataLocation.java @@ -14,8 +14,8 @@ */ package fr.neatmonster.nocheatplus.checks.net.model; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.components.location.IGetPositionWithLook; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; /** * An immutable location data object with coordinates and pitch and yaw. diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/components/location/SimplePositionWithLook.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/components/location/SimplePositionWithLook.java index e2e5b6b2..01b45b22 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/components/location/SimplePositionWithLook.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/components/location/SimplePositionWithLook.java @@ -16,7 +16,7 @@ package fr.neatmonster.nocheatplus.components.location; import org.bukkit.Location; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; public class SimplePositionWithLook implements IPositionWithLook { diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/logging/debug/DebugUtil.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/logging/debug/DebugUtil.java index 76d4f398..6792b681 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/logging/debug/DebugUtil.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/logging/debug/DebugUtil.java @@ -17,8 +17,8 @@ package fr.neatmonster.nocheatplus.logging.debug; import org.bukkit.Location; import fr.neatmonster.nocheatplus.NCPAPIProvider; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.logging.Streams; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.PlayerLocation; import fr.neatmonster.nocheatplus.utilities.location.TrigUtil; import fr.neatmonster.nocheatplus.utilities.map.BlockCache; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/TeleportUtil.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/TeleportUtil.java index 5ed93799..b91abdb9 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/TeleportUtil.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/TeleportUtil.java @@ -23,10 +23,10 @@ import fr.neatmonster.nocheatplus.NCPAPIProvider; import fr.neatmonster.nocheatplus.checks.CheckType; import fr.neatmonster.nocheatplus.checks.moving.MovingConfig; import fr.neatmonster.nocheatplus.checks.moving.MovingData; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.checks.moving.model.VehicleMoveData; import fr.neatmonster.nocheatplus.checks.moving.util.AuxMoving; import fr.neatmonster.nocheatplus.checks.workaround.WRPT; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.location.TrigUtil; // TODO: Auto-generated Javadoc diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/location/LocUtil.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/location/LocUtil.java similarity index 95% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/location/LocUtil.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/location/LocUtil.java index 2b657c46..c87b0536 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/location/LocUtil.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/location/LocUtil.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package fr.neatmonster.nocheatplus.checks.moving.location; +package fr.neatmonster.nocheatplus.utilities.location; import org.bukkit.Location; import org.bukkit.World; @@ -23,7 +23,6 @@ import fr.neatmonster.nocheatplus.components.location.IGetLocationWithLook; import fr.neatmonster.nocheatplus.components.location.IGetPosition; import fr.neatmonster.nocheatplus.components.location.IGetPositionWithLook; import fr.neatmonster.nocheatplus.components.location.ISetPositionWithLook; -import fr.neatmonster.nocheatplus.utilities.location.RichBoundsLocation; /** * Auxiliary methods for Location handling, mainly intended for use with diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/location/RichBoundsLocation.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/location/RichBoundsLocation.java index 49ba1d7e..51a68026 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/location/RichBoundsLocation.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/location/RichBoundsLocation.java @@ -22,7 +22,6 @@ import org.bukkit.World; import org.bukkit.block.BlockFace; import org.bukkit.util.Vector; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.compat.blocks.changetracker.BlockChangeReference; import fr.neatmonster.nocheatplus.compat.blocks.changetracker.BlockChangeTracker; import fr.neatmonster.nocheatplus.compat.blocks.changetracker.BlockChangeTracker.BlockChangeEntry; diff --git a/NCPCore/src/test/java/fr/neatmonster/nocheatplus/TestICollideRayVsAABB.java b/NCPCore/src/test/java/fr/neatmonster/nocheatplus/TestICollideRayVsAABB.java index 455f974c..61bf6579 100644 --- a/NCPCore/src/test/java/fr/neatmonster/nocheatplus/TestICollideRayVsAABB.java +++ b/NCPCore/src/test/java/fr/neatmonster/nocheatplus/TestICollideRayVsAABB.java @@ -18,9 +18,9 @@ import static org.junit.Assert.fail; import org.junit.Test; -import fr.neatmonster.nocheatplus.checks.moving.location.LocUtil; import fr.neatmonster.nocheatplus.utilities.collision.CollideRayVsAABB; import fr.neatmonster.nocheatplus.utilities.collision.ICollideRayVsAABB; +import fr.neatmonster.nocheatplus.utilities.location.LocUtil; public class TestICollideRayVsAABB {