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>
-
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 -
recipe
-
craftAll
private boolean craftAll
-
-
Constructor Details
-
CraftRequestC2SPacket
public CraftRequestC2SPacket() -
CraftRequestC2SPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>
-
getSyncId
public int getSyncId() -
getRecipe
-
shouldCraftAll
public boolean shouldCraftAll()
-