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 psintermediary net/minecraft/class_2632named net/minecraft/network/packet/s2c/play/DifficultyS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private Difficultydifficultyprivate booleandifficultyLocked -
Constructor Summary
Constructors Constructor Description DifficultyS2CPacket()DifficultyS2CPacket(Difficulty difficulty, boolean difficultyLocked) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)DifficultygetDifficulty()booleanisDifficultyLocked()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
difficulty
- Mappings:
Namespace Name Mixin selector official aLps;a:Lapn;intermediary field_12090Lnet/minecraft/class_2632;field_12090:Lnet/minecraft/class_1267;named difficultyLnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;difficulty:Lnet/minecraft/world/Difficulty;
-
difficultyLocked
private boolean difficultyLocked- Mappings:
Namespace Name Mixin selector official bLps;b:Zintermediary field_12091Lnet/minecraft/class_2632;field_12091:Znamed difficultyLockedLnet/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)Vintermediary <init>Lnet/minecraft/class_2632;<init>(Lnet/minecraft/class_1267;Z)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;<init>(Lnet/minecraft/world/Difficulty;Z)V
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLps;a(Lpd;)Vintermediary method_11341Lnet/minecraft/class_2632;method_11341(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLpa;a(Lnw;)Vintermediary method_11053Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)Vnamed readLnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLpa;b(Lnw;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
isDifficultyLocked
- Mappings:
Namespace Name Mixin selector official bLps;b()Zintermediary method_11340Lnet/minecraft/class_2632;method_11340()Znamed isDifficultyLockedLnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;isDifficultyLocked()Z
-
getDifficulty
- Mappings:
Namespace Name Mixin selector official cLps;c()Lapn;intermediary method_11342Lnet/minecraft/class_2632;method_11342()Lnet/minecraft/class_1267;named getDifficultyLnet/minecraft/network/packet/s2c/play/DifficultyS2CPacket;getDifficulty()Lnet/minecraft/world/Difficulty;
-