Class EVANESCO


public final class EVANESCO extends EntityTransfiguration
Vanishes items, boats, and minecarts.
See Also:
  • Constructor Details

    • EVANESCO

      public EVANESCO(Ollivanders2 plugin)
      Default constructor for use in generating spell text. Do not use to cast the spell.
      Parameters:
      plugin - the Ollivanders2 plugin
    • EVANESCO

      public EVANESCO(@NotNull @NotNull Ollivanders2 plugin, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Double rightWand)
      Constructor.
      Parameters:
      plugin - a callback to the MC plugin
      player - the player who cast this spell
      rightWand - which wand the player was using
  • Method Details

    • transfigureEntity

      @Nullable protected @Nullable org.bukkit.entity.Entity transfigureEntity(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Remove the entity and set the transfigured entity to the original
      Specified by:
      transfigureEntity in class EntityTransfiguration
      Parameters:
      entity - the entity to transfigure
      Returns:
      the original entity, now removed/killed