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 voidapply(ClientPlayPacketListener clientPlayPacketListener)List<Recipe<?>>getRecipes()voidread(PacketByteBuf buf)static Recipe<?>readRecipe(PacketByteBuf buf)voidwrite(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, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
recipes
-
-
Constructor Details
-
SynchronizeRecipesS2CPacket
public SynchronizeRecipesS2CPacket() -
SynchronizeRecipesS2CPacket
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
getRecipes
-
readRecipe
-
writeRecipe
-