Class LecternSpellPacketC2S

java.lang.Object
com.binaris.wizardry.core.networking.c2s.LecternSpellPacketC2S
All Implemented Interfaces:
Message

public class LecternSpellPacketC2S extends Object implements Message
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LecternSpellPacketC2S(net.minecraft.core.BlockPos pos, @Nullable net.minecraft.resources.ResourceLocation spell)
     
    LecternSpellPacketC2S(net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(net.minecraft.network.FriendlyByteBuf buf)
     
    net.minecraft.resources.ResourceLocation
     
    void
    handleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.binaris.wizardry.core.networking.abst.Message

    handleClient
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
  • Constructor Details

    • LecternSpellPacketC2S

      public LecternSpellPacketC2S(net.minecraft.core.BlockPos pos, @Nullable @Nullable net.minecraft.resources.ResourceLocation spell)
    • LecternSpellPacketC2S

      public LecternSpellPacketC2S(net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Specified by:
      getId in interface Message
    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      encode in interface Message
    • handleServer

      public void handleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player)
      Specified by:
      handleServer in interface Message