Class CraftRequestC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.CraftRequestC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class CraftRequestC2SPacket extends Object implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official tpintermediary net/minecraft/class_2840named net/minecraft/network/packet/c2s/play/CraftRequestC2SPacket
-
Field Summary
Fields Modifier and Type Field Description private booleancraftAllprivate Identifierrecipeprivate intsyncId -
Constructor Summary
Constructors Constructor Description CraftRequestC2SPacket()CraftRequestC2SPacket(int syncId, Recipe<?> recipe, boolean craftAll) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)IdentifiergetRecipe()intgetSyncId()voidread(PacketByteBuf buf)booleanshouldCraftAll()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
-
syncId
private int syncId- Mappings:
Namespace Name Mixin selector official aLtp;a:Iintermediary field_12933Lnet/minecraft/class_2840;field_12933:Inamed syncIdLnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;syncId:I
-
recipe
- Mappings:
Namespace Name Mixin selector official bLtp;b:Lwb;intermediary field_12931Lnet/minecraft/class_2840;field_12931:Lnet/minecraft/class_2960;named recipeLnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;recipe:Lnet/minecraft/util/Identifier;
-
craftAll
private boolean craftAll- Mappings:
Namespace Name Mixin selector official cLtp;c:Zintermediary field_12932Lnet/minecraft/class_2840;field_12932:Znamed craftAllLnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;craftAll:Z
-
-
Constructor Details
-
CraftRequestC2SPacket
public CraftRequestC2SPacket() -
CraftRequestC2SPacket
- Mappings:
Namespace Name Mixin selector official <init>Ltp;<init>(ILbqn;Z)Vintermediary <init>Lnet/minecraft/class_2840;<init>(ILnet/minecraft/class_1860;Z)Vnamed <init>Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;<init>(ILnet/minecraft/recipe/Recipe;Z)V
-
-
Method Details
-
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
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLtp;a(Lss;)Vintermediary method_12317Lnet/minecraft/class_2840;method_12317(Lnet/minecraft/class_2792;)Vnamed applyLnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
getSyncId
public int getSyncId()- Mappings:
Namespace Name Mixin selector official bLtp;b()Iintermediary method_12318Lnet/minecraft/class_2840;method_12318()Inamed getSyncIdLnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;getSyncId()I
-
getRecipe
- Mappings:
Namespace Name Mixin selector official cLtp;c()Lwb;intermediary method_12320Lnet/minecraft/class_2840;method_12320()Lnet/minecraft/class_2960;named getRecipeLnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;getRecipe()Lnet/minecraft/util/Identifier;
-
shouldCraftAll
public boolean shouldCraftAll()- Mappings:
Namespace Name Mixin selector official dLtp;d()Zintermediary method_12319Lnet/minecraft/class_2840;method_12319()Znamed shouldCraftAllLnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;shouldCraftAll()Z
-