Class AnvilSelectRecipeC2SPacket

java.lang.Object
com.hbm_m.network.AnvilSelectRecipeC2SPacket
All Implemented Interfaces:
C2SPacket

public class AnvilSelectRecipeC2SPacket extends Object implements C2SPacket
  • Constructor Details

    • AnvilSelectRecipeC2SPacket

      public AnvilSelectRecipeC2SPacket(net.minecraft.core.BlockPos pos, @Nullable net.minecraft.resources.ResourceLocation recipeId)
  • Method Details

    • decode

      public static AnvilSelectRecipeC2SPacket decode(net.minecraft.network.FriendlyByteBuf buf)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      write in interface C2SPacket
    • handle

      public static void handle(AnvilSelectRecipeC2SPacket msg, dev.architectury.networking.NetworkManager.PacketContext context)
    • sendToServer

      public static void sendToServer(net.minecraft.core.BlockPos pos, @Nullable net.minecraft.resources.ResourceLocation recipeId)