Interface AxolotlBucketMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

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

    • getVariant

      Get the variant of the axolotl in the bucket.

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

      Returns:
      axolotl variant
    • setVariant

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

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

      Specified by:
      clone in interface ItemMeta