Class RocketHandler
java.lang.Object
com.lightning.northstar.contraption.rocket.RocketHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic longstatic longstatic final List<RocketContraptionEntity> static List<com.mojang.datafixers.util.Pair<net.minecraft.world.level.Level, net.minecraft.core.BlockPos>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteTicket(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) static RocketContraptionEntitygetRocketThatContainsEntity(net.minecraft.world.entity.Entity entity) static booleanisInRocket(net.minecraft.world.entity.Entity entity) static voidonWorldTick(net.neoforged.neoforge.event.tick.LevelTickEvent.Pre event) static voidregister()
-
Field Details
-
ROCKETS
-
TICKET_QUEUE
public static List<com.mojang.datafixers.util.Pair<net.minecraft.world.level.Level,net.minecraft.core.BlockPos>> TICKET_QUEUE -
CONTROL_QUEUE
-
eventTickNumber
public static long eventTickNumber -
eventTickNumberCheck
public static long eventTickNumberCheck -
DIMENSION_CHANGE_HEIGHT
public static final int DIMENSION_CHANGE_HEIGHT- See Also:
-
-
Constructor Details
-
RocketHandler
public RocketHandler()
-
-
Method Details
-
onWorldTick
public static void onWorldTick(net.neoforged.neoforge.event.tick.LevelTickEvent.Pre event) -
deleteTicket
public static void deleteTicket(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
isInRocket
public static boolean isInRocket(net.minecraft.world.entity.Entity entity) -
getRocketThatContainsEntity
public static RocketContraptionEntity getRocketThatContainsEntity(net.minecraft.world.entity.Entity entity) -
register
public static void register()
-