Enum AnimationHandlerType

java.lang.Object
java.lang.Enum<AnimationHandlerType>
de.marcely.bedwars.api.cosmetics.animation.AnimationHandlerType
All Implemented Interfaces:
Serializable, Comparable<AnimationHandlerType>, java.lang.constant.Constable

public enum AnimationHandlerType extends Enum<AnimationHandlerType>
Represents an implementation variant for one of an animation's handler.
  • Enum Constant Details

    • DELAYED

      public static final AnimationHandlerType DELAYED
      Wraps another handler and plays it after a defined while.
    • SIMPLE_PARTICLE

      public static final AnimationHandlerType SIMPLE_PARTICLE
      Spawns one or multiple particles.
    • SIMPLE_ENTITY

      public static final AnimationHandlerType SIMPLE_ENTITY
      Spawns one or multiple entities.
    • SOUND

      public static final AnimationHandlerType SOUND
      Plays a sound once or repeatedly.
    • PLACE_BLOCK

      public static final AnimationHandlerType PLACE_BLOCK
      Places a block.
    • DISPLAY_HOLOGRAM

      public static final AnimationHandlerType DISPLAY_HOLOGRAM
      Displays a hologram with custom text.
    • ENTITY_EXPLOSION

      public static final AnimationHandlerType ENTITY_EXPLOSION
      Spawn a bunch of entities in an explosion-like matter.
    • RIDE_ENTITY

      public static final AnimationHandlerType RIDE_ENTITY
      Spawns an entity and makes the player ride it.
    • ENTITY_FLYING

      public static final AnimationHandlerType ENTITY_FLYING
      Spawns an entity and makes it fly up or to a specified direction like a rocket.
    • FLYING_HEAD

      public static final AnimationHandlerType FLYING_HEAD
      Spawns a head and makes it fly like a rocket.
    • PARTICLE_MOVEMENT

      public static final AnimationHandlerType PARTICLE_MOVEMENT
      Plays particles that move from position A to position B.
    • PARTICLE_CONE

      public static final AnimationHandlerType PARTICLE_CONE
      Spawns particles that look like a cone.
    • WORLD_TIME

      public static final AnimationHandlerType WORLD_TIME
      Changes the time of the world.
    • WORLD_WEATHER

      public static final AnimationHandlerType WORLD_WEATHER
      Change the current weather of the world.
    • BLOCKS_VIRUS

      public static final AnimationHandlerType BLOCKS_VIRUS
      Changes a single block at the beginning and then increasingly gets bigger like a virus.
    • PARTICLE_TEXT

      public static final AnimationHandlerType PARTICLE_TEXT
      Plays particles that form text.
    • PARTICLE_IMAGE

      public static final AnimationHandlerType PARTICLE_IMAGE
      Displays an actual image as colored particles. Used for glyphs.
    • NPC_PARTY

      public static final AnimationHandlerType NPC_PARTY
      Spawns many NPCs in the radious of the player that perform a certain activity.
    • CUSTOM

      public static final AnimationHandlerType CUSTOM
      Represents a custom handler added using the API.
  • Method Details

    • values

      public static AnimationHandlerType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AnimationHandlerType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getByName

      @Nullable public static @Nullable AnimationHandlerType getByName(String name)
      Tries to obtain the type given by a config-friendly name.
      Parameters:
      name - The name used for the matching
      Returns:
      The found type. May be null if none was found