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_2036
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_8704 Lnet/minecraft/class_2036;field_8704: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_8705 Lnet/minecraft/class_2036;field_8705:Lnet/minecraft/class_2151;
      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_8706 Lnet/minecraft/class_2036;field_8706:Lnet/minecraft/class_1156$class_1157;
      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_8707 Lnet/minecraft/class_2036;field_8707:Lnet/minecraft/class_1160;
      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_2036;<init>(ILnet/minecraft/class_2151;Lnet/minecraft/class_1160;Lnet/minecraft/class_1156$class_1157;)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_7845 Lnet/minecraft/class_2036;method_7845(Lnet/minecraft/class_1993;)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_7535 Lnet/minecraft/class_700;method_7535(Lnet/minecraft/class_1967;)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_7539 Lnet/minecraft/class_700;method_7539(Lnet/minecraft/class_1967;)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_7846 Lnet/minecraft/class_2036;method_7846()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_7847 Lnet/minecraft/class_2036;method_7847()Lnet/minecraft/class_2151;
      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_7848 Lnet/minecraft/class_2036;method_7848()Lnet/minecraft/class_1156$class_1157;
      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_7849 Lnet/minecraft/class_2036;method_7849()Lnet/minecraft/class_1160;
      named getGeneratorType Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;getGeneratorType()Lnet/minecraft/world/level/LevelGeneratorType;