接口 AxolotlBucketMeta

所有超级接口:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface AxolotlBucketMeta extends ItemMeta
代表一桶美西螈.
  • 方法详细资料

    • getVariant

      获取桶中美西螈的变种.

      插件应该在调用此方法之前检查 hasVariant() 是否返回 true.

      原文:Get the variant of the axolotl in the bucket. Plugins should check that hasVariant() returns true before calling this method.

      返回:
      美西螈变种
    • setVariant

      void setVariant(@NotNull Axolotl.Variant variant)
      设置此桶中美西螈的变种.

      原文:Set the variant of this axolotl in the bucket.

      参数:
      variant - 美西螈变种
    • hasVariant

      boolean hasVariant()
      检查是否存在变种标签,该标签表示将生成特定的美西螈.

      原文:Checks for existence of a variant tag indicating a specific axolotl will be spawned.

      返回:
      是否存在变种
    • clone

      指定者:
      clone 在接口中 ItemMeta