Package me.iron.WarpSpace.Mod.server
Class NavHelper
java.lang.Object
me.iron.WarpSpace.Mod.server.NavHelper
public class NavHelper
extends java.lang.Object
adds elements that make it easier to tell what warp coord relates to what realspace coord.
-
Constructor Summary
Constructors Constructor Description NavHelper()
-
Method Summary
Modifier and Type Method Description static void
handlePilots(org.schema.game.common.controller.SegmentController ship, boolean toWarp)
change the players waypoint on their machine so that waypoints point to the correct position when chaning into warp.static org.schema.common.util.linAlg.Vector3i
switchWaypoint(org.schema.common.util.linAlg.Vector3i waypoint, boolean toWarp)
get the players waypoint to its equivalent in warpspace / realspace, so that navigating in warp is easier.
-
Constructor Details
-
NavHelper
public NavHelper()
-
-
Method Details
-
switchWaypoint
public static org.schema.common.util.linAlg.Vector3i switchWaypoint(org.schema.common.util.linAlg.Vector3i waypoint, boolean toWarp)get the players waypoint to its equivalent in warpspace / realspace, so that navigating in warp is easier.- Parameters:
waypoint
- name of the player whos navigation waypoint should be changedtoWarp
- switch navigation waypoint towarp, false for to realspace- Returns:
- new waypoint in other dimension
-
handlePilots
public static void handlePilots(org.schema.game.common.controller.SegmentController ship, boolean toWarp)change the players waypoint on their machine so that waypoints point to the correct position when chaning into warp.- Parameters:
ship
- segmentcontroller of playerstoWarp
- boolean, true for going into warp, false for dropping out
-