Class PlayerSpawnPositionS2CPacket

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

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

    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official a Lrq;a:Lfx;
      intermediary field_12615 Lnet/minecraft/class_2759;field_12615:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • angle

      private float angle
      Mappings:
      Namespace Name Mixin selector
      official b Lrq;b:F
      intermediary field_26381 Lnet/minecraft/class_2759;field_26381:F
      named angle Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;angle:F
  • Constructor Details

    • PlayerSpawnPositionS2CPacket

      public PlayerSpawnPositionS2CPacket()
    • PlayerSpawnPositionS2CPacket

      public PlayerSpawnPositionS2CPacket​(BlockPos pos, float angle)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrq;<init>(Lfx;F)V
      intermediary <init> Lnet/minecraft/class_2759;<init>(Lnet/minecraft/class_2338;F)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;<init>(Lnet/minecraft/util/math/BlockPos;F)V
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)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 Lrq;a(Lpd;)V
      intermediary method_11869 Lnet/minecraft/class_2759;method_11869(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getPos

      @Environment(CLIENT) public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official b Lrq;b()Lfx;
      intermediary method_11870 Lnet/minecraft/class_2759;method_11870()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;getPos()Lnet/minecraft/util/math/BlockPos;
    • getAngle

      @Environment(CLIENT) public float getAngle()
      Mappings:
      Namespace Name Mixin selector
      official c Lrq;c()F
      intermediary method_30732 Lnet/minecraft/class_2759;method_30732()F
      named getAngle Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;getAngle()F