Class ClientboundUpdateRecipesPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundUpdateRecipesPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientboundUpdateRecipesPacket
(Collection<RecipeHolder<?>> p_133632_) ClientboundUpdateRecipesPacket
(FriendlyByteBuf p_179468_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static RecipeHolder<?>
fromNetwork
(FriendlyByteBuf p_133648_) List<RecipeHolder<?>>
void
handle
(ClientGamePacketListener p_133641_) static <T extends Recipe<?>>
voidtoNetwork
(FriendlyByteBuf p_179470_, RecipeHolder<?> p_297340_) void
write
(FriendlyByteBuf p_133646_) 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.protocol.Packet
isSkippable, nextProtocol
-
Field Details
-
recipes
-
-
Constructor Details
-
ClientboundUpdateRecipesPacket
-
ClientboundUpdateRecipesPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getRecipes
-
fromNetwork
-
toNetwork
public static <T extends Recipe<?>> void toNetwork(FriendlyByteBuf p_179470_, RecipeHolder<?> p_297340_)
-