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 Summary
Fields Modifier and Type Field Description private Difficulty
difficulty
private boolean
difficultyLocked
-
Constructor Summary
Constructors Constructor Description DifficultyS2CPacket()
DifficultyS2CPacket(Difficulty difficulty, boolean difficultyLocked)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
Difficulty
getDifficulty()
boolean
isDifficultyLocked()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
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
- 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
- Specified by:
apply
in interfacePacket<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
- Specified by:
read
in interfacePacket<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
- Specified by:
write
in interfacePacket<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
- 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
- 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;
-