Class DifficultyS2CPacket

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

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

    • difficulty

      private Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      official a Lps;a:Lapn;
      intermediary field_12090 Lnet/minecraft/class_2632;field_12090:Lnet/minecraft/class_1267;
      named difficulty Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;difficulty:Lnet/minecraft/world/Difficulty;
    • difficultyLocked

      private boolean difficultyLocked
      Mappings:
      Namespace Name Mixin selector
      official b Lps;b:Z
      intermediary field_12091 Lnet/minecraft/class_2632;field_12091:Z
      named difficultyLocked Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;difficultyLocked:Z
  • Constructor Details

    • DifficultyS2CPacket

      public DifficultyS2CPacket()
    • DifficultyS2CPacket

      public DifficultyS2CPacket​(Difficulty difficulty, boolean difficultyLocked)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lps;<init>(Lapn;Z)V
      intermediary <init> Lnet/minecraft/class_2632;<init>(Lnet/minecraft/class_1267;Z)V
      named <init> Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;<init>(Lnet/minecraft/world/Difficulty;Z)V
  • Method Details

    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lps;a(Lpd;)V
      intermediary method_11341 Lnet/minecraft/class_2632;method_11341(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;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 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
    • isDifficultyLocked

      @Environment(CLIENT) public boolean isDifficultyLocked()
      Mappings:
      Namespace Name Mixin selector
      official b Lps;b()Z
      intermediary method_11340 Lnet/minecraft/class_2632;method_11340()Z
      named isDifficultyLocked Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;isDifficultyLocked()Z
    • getDifficulty

      @Environment(CLIENT) public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official c Lps;c()Lapn;
      intermediary method_11342 Lnet/minecraft/class_2632;method_11342()Lnet/minecraft/class_1267;
      named getDifficulty Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;getDifficulty()Lnet/minecraft/world/Difficulty;