Interface AxolotlBucketMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder, PersistentDataViewHolder

@NullMarked public interface AxolotlBucketMeta extends ItemMeta
Represents a bucket of axolotl.
  • Method Details

    • getVariant

      Axolotl.Variant getVariant()
      Get the variant of the axolotl in the bucket.

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

      Returns:
      axolotl variant
      Throws:
      IllegalStateException - if hasVariant() returns false
    • setVariant

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

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

      Specified by:
      clone in interface ItemMeta