Interface AxolotlBucketMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface AxolotlBucketMeta extends ItemMeta
Represents a bucket of axolotl.
  • Method Details Link icon

    • getVariant Link icon

      Get the variant of the axolotl in the bucket.

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

      Returns:
      axolotl variant
    • setVariant Link icon

      void setVariant(@NotNull Axolotl.Variant variant)
      Set the variant of this axolotl in the bucket.
      Parameters:
      variant - axolotl variant
    • hasVariant Link icon

      boolean hasVariant()
      Checks for existence of a variant tag indicating a specific axolotl will be spawned.
      Returns:
      if there is a variant
    • clone Link icon

      Specified by:
      clone in interface ItemMeta