Package com.hbm_m.network
Class RBMKConsoleControlPacket
java.lang.Object
com.hbm_m.network.RBMKConsoleControlPacket
- All Implemented Interfaces:
C2SPacket
C2S packet for all RBMK console control actions:
- Control rod level change
- AZ-5 emergency shutdown
- Color group assignment
- Screen type cycling
- Set reactor origin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRBMKConsoleControlPacket(net.minecraft.core.BlockPos consolePos, int action, double doubleVal, int intVal, int[] selectedIndices) -
Method Summary
Modifier and TypeMethodDescriptionstatic RBMKConsoleControlPacketdecode(net.minecraft.network.FriendlyByteBuf buf) static voidhandle(RBMKConsoleControlPacket pkt, dev.architectury.networking.NetworkManager.PacketContext ctx) static voidsendAssignColor(net.minecraft.core.BlockPos pos, int color, int[] selected) static voidsendAssignScreen(net.minecraft.core.BlockPos pos, int screenId, int[] selected) static voidsendAZ5(net.minecraft.core.BlockPos pos) static voidsendCycleScreen(net.minecraft.core.BlockPos pos, int screenId) static voidsendSetLevel(net.minecraft.core.BlockPos pos, double level, int[] selected) static voidsendSetOrigin(net.minecraft.core.BlockPos consolePos, net.minecraft.core.BlockPos origin) voidwrite(net.minecraft.network.FriendlyByteBuf buf)
-
Field Details
-
ACTION_SET_LEVEL
public static final int ACTION_SET_LEVEL- See Also:
-
ACTION_AZ5
public static final int ACTION_AZ5- See Also:
-
ACTION_ASSIGN_COLOR
public static final int ACTION_ASSIGN_COLOR- See Also:
-
ACTION_CYCLE_SCREEN
public static final int ACTION_CYCLE_SCREEN- See Also:
-
ACTION_SET_ORIGIN
public static final int ACTION_SET_ORIGIN- See Also:
-
ACTION_ASSIGN_SCREEN
public static final int ACTION_ASSIGN_SCREEN- See Also:
-
-
Constructor Details
-
RBMKConsoleControlPacket
public RBMKConsoleControlPacket(net.minecraft.core.BlockPos consolePos, int action, double doubleVal, int intVal, int[] selectedIndices)
-
-
Method Details
-
decode
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) -
handle
public static void handle(RBMKConsoleControlPacket pkt, dev.architectury.networking.NetworkManager.PacketContext ctx) -
sendSetLevel
public static void sendSetLevel(net.minecraft.core.BlockPos pos, double level, int[] selected) -
sendAZ5
public static void sendAZ5(net.minecraft.core.BlockPos pos) -
sendAssignColor
public static void sendAssignColor(net.minecraft.core.BlockPos pos, int color, int[] selected) -
sendCycleScreen
public static void sendCycleScreen(net.minecraft.core.BlockPos pos, int screenId) -
sendAssignScreen
public static void sendAssignScreen(net.minecraft.core.BlockPos pos, int screenId, int[] selected) -
sendSetOrigin
public static void sendSetOrigin(net.minecraft.core.BlockPos consolePos, net.minecraft.core.BlockPos origin)
-