接口 Axolotl

所有超级接口:
Ageable, Animals, Attributable, Breedable, CommandSender, Creature, Damageable, Entity, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Axolotl extends Animals
美西螈.
  • 方法详细资料

    • isPlayingDead

      boolean isPlayingDead()
      获取此美西螈是否正在装死. 美西螈在水下受到伤害时可能会装死.

      原文:Gets if this axolotl is playing dead. An axolotl may play dead when it is damaged underwater.

      返回:
      装死状态
    • setPlayingDead

      void setPlayingDead(boolean playingDead)
      设置此美西螈是否正在装死. 美西螈在水下受到伤害时可能会装死.

      原文:Sets if this axolotl is playing dead. An axolotl may play dead when it is damaged underwater.

      参数:
      playingDead - 装死状态
    • getVariant

      获取此美西螈的变种.

      原文:Get the variant of this axolotl.

      返回:
      美西螈变种
    • setVariant

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

      原文:Set the variant of this axolotl.

      参数:
      variant - 美西螈变种