Package me.iron.WarpSpace.Mod
Class WarpEntityManager
java.lang.Object
me.iron.WarpSpace.Mod.WarpEntityManager
public class WarpEntityManager
extends java.lang.Object
has list of all entities in warp
starts loop for them
manages list
gets info from checkloop
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<org.schema.game.common.controller.SegmentController>shipsInWarpList that holds references to every single ship currently in warp. -
Constructor Summary
Constructors Constructor Description WarpEntityManager() -
Method Summary
Modifier and Type Method Description static voidDeclareWarpEntity(org.schema.game.common.controller.SegmentController ship)declare ship a warpentity and start warp mechanics for ship. !static booleanisWarpEntity(org.schema.game.common.controller.SegmentController ship)check if an entity is registered as a warp entity in the WarpEntityManager.shipsInWarp list.static voidRemoveWarpEntity(org.schema.game.common.controller.SegmentController ship)
-
Field Details
-
shipsInWarp
public static java.util.List<org.schema.game.common.controller.SegmentController> shipsInWarpList that holds references to every single ship currently in warp. Is filled/cleaned regularly by the warpcheckloop.
-
-
Constructor Details
-
WarpEntityManager
public WarpEntityManager()
-
-
Method Details
-
DeclareWarpEntity
public static void DeclareWarpEntity(org.schema.game.common.controller.SegmentController ship)declare ship a warpentity and start warp mechanics for ship. !does not check if ship is already registered!- Parameters:
ship- Segmentcontroller to be registered
-
RemoveWarpEntity
public static void RemoveWarpEntity(org.schema.game.common.controller.SegmentController ship) -
isWarpEntity
public static boolean isWarpEntity(org.schema.game.common.controller.SegmentController ship)check if an entity is registered as a warp entity in the WarpEntityManager.shipsInWarp list.- Parameters:
ship- segmentcontroller for ship- Returns:
- boolean, true if a warp entity, false if not.
-