Class UpdateDifficultyC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.UpdateDifficultyC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class UpdateDifficultyC2SPacket extends Object implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official svintermediary net/minecraft/class_4210named net/minecraft/network/packet/c2s/play/UpdateDifficultyC2SPacket
-
Field Summary
Fields Modifier and Type Field Description private Difficultydifficulty -
Constructor Summary
Constructors Constructor Description UpdateDifficultyC2SPacket()UpdateDifficultyC2SPacket(Difficulty difficulty) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)DifficultygetDifficulty()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 aLsv;a:Lapn;intermediary field_18805Lnet/minecraft/class_4210;field_18805:Lnet/minecraft/class_1267;named difficultyLnet/minecraft/network/packet/c2s/play/UpdateDifficultyC2SPacket;difficulty:Lnet/minecraft/world/Difficulty;
-
-
Constructor Details
-
UpdateDifficultyC2SPacket
public UpdateDifficultyC2SPacket() -
UpdateDifficultyC2SPacket
- Mappings:
Namespace Name Mixin selector official <init>Lsv;<init>(Lapn;)Vintermediary <init>Lnet/minecraft/class_4210;<init>(Lnet/minecraft/class_1267;)Vnamed <init>Lnet/minecraft/network/packet/c2s/play/UpdateDifficultyC2SPacket;<init>(Lnet/minecraft/world/Difficulty;)V
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLsv;a(Lss;)Vintermediary method_19477Lnet/minecraft/class_4210;method_19477(Lnet/minecraft/class_2792;)Vnamed applyLnet/minecraft/network/packet/c2s/play/UpdateDifficultyC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- 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<ServerPlayPacketListener>- 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
-
getDifficulty
- Mappings:
Namespace Name Mixin selector official bLsv;b()Lapn;intermediary method_19478Lnet/minecraft/class_4210;method_19478()Lnet/minecraft/class_1267;named getDifficultyLnet/minecraft/network/packet/c2s/play/UpdateDifficultyC2SPacket;getDifficulty()Lnet/minecraft/world/Difficulty;
-