Class NPCSpellCastS2C

java.lang.Object
com.binaris.wizardry.core.networking.s2c.NPCSpellCastS2C
All Implemented Interfaces:
Message

public class NPCSpellCastS2C extends Object implements Message
  • Field Details

    • ID

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

    • NPCSpellCastS2C

      public NPCSpellCastS2C(int casterID, int targetID, net.minecraft.world.InteractionHand hand, Spell spell, SpellModifiers modifiers)
    • NPCSpellCastS2C

      public NPCSpellCastS2C(net.minecraft.network.FriendlyByteBuf pBuf)
  • Method Details

    • getId

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

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

      public void handleClient()
      Specified by:
      handleClient in interface Message
    • getHand

      public net.minecraft.world.InteractionHand getHand()
    • getSpell

      public Spell getSpell()
    • getModifiers

      public SpellModifiers getModifiers()
    • getCasterID

      public int getCasterID()
    • getTargetID

      public int getTargetID()