Class PIERTOTUM_LOCOMOTOR

All Implemented Interfaces:
org.bukkit.event.Listener

public final class PIERTOTUM_LOCOMOTOR extends BlockToEntityTransfiguration
Transfigures an iron golem from a block of iron, and snow golem from block of snow.

There is no spell like this in HP universe though we know there must be some sort of animation spell which McGonagall used on the giant wizards chess board in 1991.

See Also:
  • Constructor Details

    • PIERTOTUM_LOCOMOTOR

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

      public PIERTOTUM_LOCOMOTOR(@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

    • onEntityDamage

      public void onEntityDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event)
      Prevent the golem from harming its creator and have it attack anyone who does
      Parameters:
      event - the entity damage event
    • onEntityTarget

      public void onEntityTarget(org.bukkit.event.entity.EntityTargetEvent event)
      Prevent golem from targeting its creator.
      Parameters:
      event - the entity target event