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