Interface Spellcaster

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Creature, Damageable, DataComponentView, Enemy, Entity, Frictional, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Illager, Leashable, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, Raider, ServerOperator, net.kyori.adventure.sound.Sound.Emitter, net.kyori.adventure.sound.Sound.Source.Provider
All Known Subinterfaces:
Evoker, Illusioner

public interface Spellcaster extends Illager
Represents a spell casting "Illager".
Since:
1.12
  • Method Details

    • getSpell

      @NotNull @NotNull Spellcaster.Spell getSpell()
      Gets the Spellcaster.Spell the entity is currently using.
      Returns:
      the current spell
      Since:
      1.12
    • setSpell

      void setSpell(@NotNull @NotNull Spellcaster.Spell spell)
      Sets the Spellcaster.Spell the entity is currently using.
      Parameters:
      spell - the spell the entity should be using
      Since:
      1.12