Class PlayerRespawnS2CPacket

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

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

    • dimensionId

      private int dimensionId
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a:I
      intermediary field_6270 Lnet/minecraft/class_1520;field_6270:I
      named dimensionId Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;dimensionId:I
    • difficulty

      private Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      official b Lhe;b:Loj;
      intermediary field_6271 Lnet/minecraft/class_1520;field_6271:Lnet/minecraft/class_1721;
      named difficulty Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;difficulty:Lnet/minecraft/world/Difficulty;
    • gameMode

      private LevelInfo.GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      official c Lhe;c:Ladp$a;
      intermediary field_6272 Lnet/minecraft/class_1520;field_6272:Lnet/minecraft/class_102$class_103;
      named gameMode Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;gameMode:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • generatorType

      private LevelGeneratorType generatorType
      Mappings:
      Namespace Name Mixin selector
      official d Lhe;d:Ladr;
      intermediary field_6273 Lnet/minecraft/class_1520;field_6273:Lnet/minecraft/class_105;
      named generatorType Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;generatorType:Lnet/minecraft/world/level/LevelGeneratorType;
  • Constructor Details

    • PlayerRespawnS2CPacket

      public PlayerRespawnS2CPacket()
    • PlayerRespawnS2CPacket

      public PlayerRespawnS2CPacket​(int dimensionId, Difficulty difficulty, LevelGeneratorType generatorType, LevelInfo.GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhe;<init>(ILoj;Ladr;Ladp$a;)V
      intermediary <init> Lnet/minecraft/class_1520;<init>(ILnet/minecraft/class_1721;Lnet/minecraft/class_105;Lnet/minecraft/class_102$class_103;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;<init>(ILnet/minecraft/world/Difficulty;Lnet/minecraft/world/level/LevelGeneratorType;Lnet/minecraft/world/level/LevelInfo$GameMode;)V
  • Method Details

    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(Lfj;)V
      intermediary method_5567 Lnet/minecraft/class_1520;method_5567(Lnet/minecraft/class_1462;)V
      named apply Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • 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
    • getDimensionId

      @Environment(CLIENT) public int getDimensionId()
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a()I
      intermediary method_5566 Lnet/minecraft/class_1520;method_5566()I
      named getDimensionId Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;getDimensionId()I
    • getDifficulty

      @Environment(CLIENT) public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official b Lhe;b()Loj;
      intermediary method_5568 Lnet/minecraft/class_1520;method_5568()Lnet/minecraft/class_1721;
      named getDifficulty Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;getDifficulty()Lnet/minecraft/world/Difficulty;
    • getGameMode

      @Environment(CLIENT) public LevelInfo.GameMode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      official c Lhe;c()Ladp$a;
      intermediary method_5569 Lnet/minecraft/class_1520;method_5569()Lnet/minecraft/class_102$class_103;
      named getGameMode Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;getGameMode()Lnet/minecraft/world/level/LevelInfo$GameMode;
    • getGeneratorType

      @Environment(CLIENT) public LevelGeneratorType getGeneratorType()
      Mappings:
      Namespace Name Mixin selector
      official d Lhe;d()Ladr;
      intermediary method_5570 Lnet/minecraft/class_1520;method_5570()Lnet/minecraft/class_105;
      named getGeneratorType Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;getGeneratorType()Lnet/minecraft/world/level/LevelGeneratorType;