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 ve
intermediary net/minecraft/class_2632
named net/minecraft/network/packet/s2c/play/DifficultyS2CPacket
  • Field Details

    • difficulty

      private final Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      official a Lve;a:Lbdr;
      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 final boolean difficultyLocked
      Mappings:
      Namespace Name Mixin selector
      official b Lve;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(Difficulty difficulty, boolean difficultyLocked)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lve;<init>(Lbdr;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
    • DifficultyS2CPacket

      public DifficultyS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lve;<init>(Lsf;)V
      intermediary <init> Lnet/minecraft/class_2632;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Luo;a(Lsf;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lve;a(Lur;)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
    • isDifficultyLocked

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

      public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official c Lve;c()Lbdr;
      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;