Class SynchronizeRecipesS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.SynchronizeRecipesS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class SynchronizeRecipesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SynchronizeRecipesS2CPacket()
SynchronizeRecipesS2CPacket(Collection<Recipe<?>> recipes)
-
Method Summary
Modifier and Type Method 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<?>>
voidwriteRecipe(T recipe, PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
recipes
-
-
Constructor Details
-
SynchronizeRecipesS2CPacket
public SynchronizeRecipesS2CPacket() -
SynchronizeRecipesS2CPacket
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
getRecipes
-
readRecipe
-
writeRecipe
-