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

    • CODEC

      public static final PacketCodec<PacketByteBuf,DifficultyS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47907 Lnet/minecraft/class_2632;field_47907:Lnet/minecraft/class_9139;
      official a Lade;a:Lzt;
    • difficulty

      private final Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      named difficulty Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;difficulty:Lnet/minecraft/world/Difficulty;
      intermediary field_12090 Lnet/minecraft/class_2632;field_12090:Lnet/minecraft/class_1267;
      official b Lade;b:Lbtf;
    • difficultyLocked

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

    • DifficultyS2CPacket

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

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

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_55862 Lnet/minecraft/class_2632;method_55862(Lnet/minecraft/class_2540;)V
      official a Lade;a(Lws;)V
    • getPacketId

      public PacketType<DifficultyS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Laac;a()Laae;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11341 Lnet/minecraft/class_2632;method_11341(Lnet/minecraft/class_2602;)V
      official a Lade;a(Lacr;)V
    • isDifficultyLocked

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

      public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      named getDifficulty Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;getDifficulty()Lnet/minecraft/world/Difficulty;
      intermediary method_11342 Lnet/minecraft/class_2632;method_11342()Lnet/minecraft/class_1267;
      official e Lade;e()Lbtf;