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 ht
intermediary net/minecraft/class_1537
named net/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket
  • Field Details

    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official a Lht;a:Lcj;
      intermediary field_6335 Lnet/minecraft/class_1537;field_6335:Lnet/minecraft/class_1372;
      named pos Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;pos:Lnet/minecraft/util/math/BlockPos;
  • Constructor Details

    • PlayerSpawnPositionS2CPacket

      public PlayerSpawnPositionS2CPacket()
    • PlayerSpawnPositionS2CPacket

      public PlayerSpawnPositionS2CPacket​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lht;<init>(Lcj;)V
      intermediary <init> Lnet/minecraft/class_1537;<init>(Lnet/minecraft/class_1372;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;<init>(Lnet/minecraft/util/math/BlockPos;)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 Lff;a(Lem;)V
      intermediary method_5238 Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/util/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 Lff;b(Lem;)V
      intermediary method_5240 Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lht;a(Lfj;)V
      intermediary method_5628 Lnet/minecraft/class_1537;method_5628(Lnet/minecraft/class_1462;)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 a Lht;a()Lcj;
      intermediary method_5627 Lnet/minecraft/class_1537;method_5627()Lnet/minecraft/class_1372;
      named getPos Lnet/minecraft/network/packet/s2c/play/PlayerSpawnPositionS2CPacket;getPos()Lnet/minecraft/util/math/BlockPos;