diff --git a/src/main/java/net/knarcraft/stargate/portal/Portal.java b/src/main/java/net/knarcraft/stargate/portal/Portal.java index e1090e0..28cf3ac 100644 --- a/src/main/java/net/knarcraft/stargate/portal/Portal.java +++ b/src/main/java/net/knarcraft/stargate/portal/Portal.java @@ -1,6 +1,6 @@ package net.knarcraft.stargate.portal; -import net.knarcraft.stargate.SimpleVectorOperation; +import net.knarcraft.stargate.transformation.SimpleVectorOperation; import net.knarcraft.stargate.container.BlockLocation; import net.knarcraft.stargate.container.RelativeBlockVector; import net.knarcraft.stargate.portal.property.PortalLocation; diff --git a/src/main/java/net/knarcraft/stargate/SimpleVectorOperation.java b/src/main/java/net/knarcraft/stargate/transformation/SimpleVectorOperation.java similarity index 97% rename from src/main/java/net/knarcraft/stargate/SimpleVectorOperation.java rename to src/main/java/net/knarcraft/stargate/transformation/SimpleVectorOperation.java index 09738b6..bc2bcc9 100644 --- a/src/main/java/net/knarcraft/stargate/SimpleVectorOperation.java +++ b/src/main/java/net/knarcraft/stargate/transformation/SimpleVectorOperation.java @@ -1,4 +1,4 @@ -package net.knarcraft.stargate; +package net.knarcraft.stargate.transformation; import org.bukkit.Axis; import org.bukkit.block.BlockFace; @@ -32,7 +32,7 @@ public class SimpleVectorOperation { * * @param signFace
The sign face of a gate's sign
*/ - public SimpleVectorOperation(BlockFace signFace) { + public SimpleVectorOperation(@NotNull BlockFace signFace) { if (normalAxes.isEmpty()) { initializeIrisNormalAxes(); initializeOperations(); @@ -47,6 +47,7 @@ public class SimpleVectorOperation { * * @returnThe block face of a sign given upon instantiation
*/ + @NotNull public BlockFace getFacing() { return facing; } @@ -58,6 +59,7 @@ public class SimpleVectorOperation { * * @returnThe normal axis orthogonal to the opening plane
*/ + @NotNull public Axis getNormalAxis() { return normalAxis; } @@ -77,6 +79,7 @@ public class SimpleVectorOperation { * @param vectorThe vector to perform the operation on
* @return vectorA new vector with the operation applied
*/ + @NotNull public Vector performToAbstractSpaceOperation(@NotNull Vector vector) { Vector clone = vector.clone(); clone.rotateAroundAxis(rotationAxes.get(facing), rotationAngles.get(facing)); @@ -92,6 +95,7 @@ public class SimpleVectorOperation { * @param vectorThe vector to perform the inverse operation on
* @return vectorA new vector with the operation applied
*/ + @NotNull public Vector performToRealSpaceOperation(@NotNull Vector vector) { Vector clone = vector.clone(); if (flipZAxis) { @@ -106,6 +110,7 @@ public class SimpleVectorOperation { * @param vectorThe vector to perform the inverse operation on
* @return vectorA new vector with the operation applied
*/ + @NotNull public BlockVector performToRealSpaceOperation(@NotNull BlockVector vector) { return performToRealSpaceOperation((Vector) vector).toBlockVector(); }