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 acv
  • 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 Lacv;a:Lzn;
    • 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 Lacv;b:Lbqt;
    • 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 Lacv;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> Lacv;<init>(Lbqt;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> Lacv;<init>(Lwm;)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 Lacv;a(Lwm;)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 Lzw;a()Lzy;
    • 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 Lacv;a(Laci;)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 Lacv;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 Lacv;e()Lbqt;