Class BanAnimation

java.lang.Object
fr.andross.banitem.utils.BanAnimation

public final class BanAnimation extends Object
Animation class.
Version:
3.1
Author:
Andross
  • Constructor Details

    • BanAnimation

      public BanAnimation(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull BanConfig banConfig)
      Loading a ban animation.
      Parameters:
      sender - the sender using this
      banConfig - the ban configuration used
  • Method Details

    • runAnimation

      public void runAnimation(@NotNull @NotNull org.bukkit.entity.Player p)
      Running animation, if available.
      Parameters:
      p - the player
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Serializing this ban animation object.
      Returns:
      a serialized map of this ban animation