Removes the DirectionHelper's getBlockAt method as it only increased complexity
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
package net.knarcraft.stargate.utility;
|
||||
|
||||
import net.knarcraft.stargate.container.BlockLocation;
|
||||
import net.knarcraft.stargate.container.RelativeBlockVector;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.util.Vector;
|
||||
@ -85,18 +83,6 @@ public final class DirectionHelper {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a block location relative to another
|
||||
*
|
||||
* @param topLeft <p>The block location to start at (Usually the top-left block of a portal)</p>
|
||||
* @param vector <p>The relative vector describing the relative location</p>
|
||||
* @param yaw <p>The yaw pointing outwards from the portal</p>
|
||||
* @return <p>A block location relative to the given location</p>
|
||||
*/
|
||||
public static BlockLocation getBlockAt(BlockLocation topLeft, RelativeBlockVector vector, double yaw) {
|
||||
return topLeft.getRelativeLocation(vector, yaw);
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves a location relatively
|
||||
*
|
||||
|
Reference in New Issue
Block a user