Class OpenScreenS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.OpenScreenS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class OpenScreenS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official sp
intermediary net/minecraft/class_3944
named net/minecraft/network/packet/s2c/play/OpenScreenS2CPacket
  • Field Details

    • syncId

      private final int syncId
      Mappings:
      Namespace Name Mixin selector
      official a Lsp;a:I
      intermediary field_17436 Lnet/minecraft/class_3944;field_17436:I
      named syncId Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;syncId:I
    • screenHandlerId

      private final int screenHandlerId
      Mappings:
      Namespace Name Mixin selector
      official b Lsp;b:I
      intermediary field_17437 Lnet/minecraft/class_3944;field_17437:I
      named screenHandlerId Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;screenHandlerId:I
    • name

      private final Text name
      Mappings:
      Namespace Name Mixin selector
      official c Lsp;c:Lpz;
      intermediary field_17438 Lnet/minecraft/class_3944;field_17438:Lnet/minecraft/class_2561;
      named name Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;name:Lnet/minecraft/text/Text;
  • Constructor Details

    • OpenScreenS2CPacket

      public OpenScreenS2CPacket(int syncId, ScreenHandlerType<?> type, Text name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsp;<init>(ILbrb;Lpz;)V
      intermediary <init> Lnet/minecraft/class_3944;<init>(ILnet/minecraft/class_3917;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;<init>(ILnet/minecraft/screen/ScreenHandlerType;Lnet/minecraft/text/Text;)V
    • OpenScreenS2CPacket

      public OpenScreenS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsp;<init>(Lpn;)V
      intermediary <init> Lnet/minecraft/class_3944;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a(Lpn;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lsp;a(Lqu;)V
      intermediary method_17591 Lnet/minecraft/class_3944;method_17591(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getSyncId

      public int getSyncId()
      Mappings:
      Namespace Name Mixin selector
      official b Lsp;b()I
      intermediary method_17592 Lnet/minecraft/class_3944;method_17592()I
      named getSyncId Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;getSyncId()I
    • getScreenHandlerType

      @Nullable public @Nullable ScreenHandlerType<?> getScreenHandlerType()
      Mappings:
      Namespace Name Mixin selector
      official c Lsp;c()Lbrb;
      intermediary method_17593 Lnet/minecraft/class_3944;method_17593()Lnet/minecraft/class_3917;
      named getScreenHandlerType Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;getScreenHandlerType()Lnet/minecraft/screen/ScreenHandlerType;
    • getName

      public Text getName()
      Mappings:
      Namespace Name Mixin selector
      official d Lsp;d()Lpz;
      intermediary method_17594 Lnet/minecraft/class_3944;method_17594()Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/network/packet/s2c/play/OpenScreenS2CPacket;getName()Lnet/minecraft/text/Text;