public class CraftRequestC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
craftAll |
private Identifier |
recipe |
private int |
syncId |
Constructor and Description |
---|
CraftRequestC2SPacket() |
CraftRequestC2SPacket(int syncId,
Recipe<?> recipe,
boolean craftAll) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
Identifier |
getRecipe() |
int |
getSyncId() |
void |
read(PacketByteBuf buf) |
boolean |
shouldCraftAll() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int syncId
private Identifier recipe
private boolean craftAll
public CraftRequestC2SPacket()
@Environment(value=CLIENT) public CraftRequestC2SPacket(int syncId, Recipe<?> recipe, boolean craftAll)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public int getSyncId()
public Identifier getRecipe()
public boolean shouldCraftAll()