Interface VerdaechtigeSuppeMeta

All Superinterfaces:
BestaendigeDatenInhaber, Cloneable, GegenstandMeta, KonfigurationsSerialisierbar

public interface VerdaechtigeSuppeMeta extends GegenstandMeta
Represents a suspicious stew that can have custom effects.
  • Method Details

    • hasCustomEffects

      boolean hasCustomEffects()
      Checks for the presence of custom zaubertrank effects.
      Returns:
      true if custom zaubertrank effects are applied
    • getCustomEffects

      @NotNull List<ZaubertrankEffekt> getCustomEffects()
      Gets an immutable list containing all custom zaubertrank effects applied to this suspicious stew.

      Plugins should check that hasCustomEffects() returns true before calling this method.

      Returns:
      the immutable list of custom zaubertrank effects
    • addCustomEffect

      boolean addCustomEffect(@NotNull ZaubertrankEffekt effect, boolean overwrite)
      Adds a custom zaubertrank effect to this suspicious stew.
      Parameters:
      effect - the zaubertrank effect to add
      overwrite - true if any existing effect of the same type should be overwritten
      Returns:
      true if the suspicious stew meta changed as a result of this call
    • removeCustomEffect

      boolean removeCustomEffect(@NotNull ZaubertrankEffektTyp type)
      Removes a custom zaubertrank effect from this suspicious stew.
      Parameters:
      type - the zaubertrank effect type to remove
      Returns:
      true if the suspicious stew meta changed as a result of this call
    • hasCustomEffect

      boolean hasCustomEffect(@NotNull ZaubertrankEffektTyp type)
      Checks for a specific custom zaubertrank effect type on this suspicious stew.
      Parameters:
      type - the zaubertrank effect type to check for
      Returns:
      true if the suspicious stew has this effect
    • clearCustomEffects

      boolean clearCustomEffects()
      Removes all custom zaubertrank effects from this suspicious stew.
      Returns:
      true if the suspicious stew meta changed as a result of this call
    • clone

      Specified by:
      clone in interface GegenstandMeta