Class RBMKConsoleControlPacket

java.lang.Object
com.hbm_m.network.RBMKConsoleControlPacket
All Implemented Interfaces:
C2SPacket

public class RBMKConsoleControlPacket extends Object implements 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 Details

  • Constructor Details

    • RBMKConsoleControlPacket

      public RBMKConsoleControlPacket(net.minecraft.core.BlockPos consolePos, int action, double doubleVal, int intVal, int[] selectedIndices)
  • Method Details

    • decode

      public static RBMKConsoleControlPacket decode(net.minecraft.network.FriendlyByteBuf buf)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      write in interface C2SPacket
    • 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)