Class BedSleepS2CPacket

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

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

    • entityId

      private int entityId
      Mappings:
      Namespace Name Mixin selector
      official a Lha;a:I
      intermediary field_6263 Lnet/minecraft/class_1516;field_6263:I
      named entityId Lnet/minecraft/network/packet/s2c/play/BedSleepS2CPacket;entityId:I
    • bedPos

      private BlockPos bedPos
      Mappings:
      Namespace Name Mixin selector
      official b Lha;b:Lcj;
      intermediary field_6264 Lnet/minecraft/class_1516;field_6264:Lnet/minecraft/class_1372;
      named bedPos Lnet/minecraft/network/packet/s2c/play/BedSleepS2CPacket;bedPos:Lnet/minecraft/util/math/BlockPos;
  • Constructor Details

    • BedSleepS2CPacket

      public BedSleepS2CPacket()
    • BedSleepS2CPacket

      public BedSleepS2CPacket​(PlayerEntity player, BlockPos bedPos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lha;<init>(Lwn;Lcj;)V
      intermediary <init> Lnet/minecraft/class_1516;<init>(Lnet/minecraft/class_1963;Lnet/minecraft/class_1372;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/BedSleepS2CPacket;<init>(Lnet/minecraft/entity/player/PlayerEntity;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 Lha;a(Lfj;)V
      intermediary method_5557 Lnet/minecraft/class_1516;method_5557(Lnet/minecraft/class_1462;)V
      named apply Lnet/minecraft/network/packet/s2c/play/BedSleepS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getPlayer

      @Environment(CLIENT) public PlayerEntity getPlayer​(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lha;a(Ladm;)Lwn;
      intermediary method_5556 Lnet/minecraft/class_1516;method_5556(Lnet/minecraft/class_99;)Lnet/minecraft/class_1963;
      named getPlayer Lnet/minecraft/network/packet/s2c/play/BedSleepS2CPacket;getPlayer(Lnet/minecraft/world/World;)Lnet/minecraft/entity/player/PlayerEntity;
    • getBedPos

      @Environment(CLIENT) public BlockPos getBedPos()
      Mappings:
      Namespace Name Mixin selector
      official a Lha;a()Lcj;
      intermediary method_5555 Lnet/minecraft/class_1516;method_5555()Lnet/minecraft/class_1372;
      named getBedPos Lnet/minecraft/network/packet/s2c/play/BedSleepS2CPacket;getBedPos()Lnet/minecraft/util/math/BlockPos;