All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.inventory.meta.FireworkEffectMeta Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package org.bukkit.inventory.meta;

import org.bukkit.FireworkEffect;
import org.bukkit.Material;

/**
 * Represents a meta that can store a single FireworkEffect. An example
 * includes {@link Material#FIREWORK_CHARGE}.
 */
public interface FireworkEffectMeta extends ItemMeta {

  /**
   * Checks if this meta has an effect.
   *
   * @return true if this meta has an effect, false otherwise
   */
  boolean hasEffect();

  /**
   * Gets the firework effect for this meta.
   *
   * @return the current effect, or null if none
   */
  FireworkEffect getEffect();

  /**
   * Sets the firework effect for this meta.
   *
   * @param effect the effect to set, or null to indicate none.
   */
  void setEffect(FireworkEffect effect);

  FireworkEffectMeta clone();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy