public class SynchronizeRecipesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Constructor and Description |
|---|
SynchronizeRecipesS2CPacket() |
SynchronizeRecipesS2CPacket(Collection<Recipe<?>> recipes) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
List<Recipe<?>> |
getRecipes() |
void |
read(PacketByteBuf buf) |
static Recipe<?> |
readRecipe(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
static <T extends Recipe<?>> |
writeRecipe(T recipe,
PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippablepublic SynchronizeRecipesS2CPacket()
public SynchronizeRecipesS2CPacket(Collection<Recipe<?>> recipes)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic static Recipe<?> readRecipe(PacketByteBuf buf)
public static <T extends Recipe<?>> void writeRecipe(T recipe, PacketByteBuf buf)