RocketEntites can now launch to a specified dimension and position. Added /aphelion rocket (entity) destination, launch, and launchTo

This commit is contained in:
XevianLight
2026-01-25 19:56:43 -07:00
parent 59062724ff
commit 5e512cae1c
14 changed files with 757 additions and 110 deletions

View File

@@ -15,8 +15,10 @@ import net.xevianlight.aphelion.block.entity.custom.ElectricArcFurnaceEntity;
import net.xevianlight.aphelion.block.entity.custom.TestBlockEntity;
import net.xevianlight.aphelion.block.entity.custom.VacuumArcFurnaceControllerEntity;
import net.xevianlight.aphelion.core.init.ModBlockEntities;
import net.xevianlight.aphelion.network.RocketPayloadHandlers;
import net.xevianlight.aphelion.network.ServerPayloadHandler;
import net.xevianlight.aphelion.network.packet.PartitionData;
import net.xevianlight.aphelion.network.packet.RocketLaunchPayload;
@EventBusSubscriber(modid = Aphelion.MOD_ID)
public class ModBusEvents {
@@ -40,7 +42,14 @@ public class ModBusEvents {
registrar.playToClient(
PartitionData.TYPE,
PartitionData.STREAM_CODEC,
ServerPayloadHandler::handleDataOnMain);
ServerPayloadHandler::handleDataOnMain
);
registrar.playToServer(
RocketLaunchPayload.TYPE,
RocketLaunchPayload.STREAM_CODEC,
RocketPayloadHandlers::handleRocketLaunch
);
}
}