接口 Sittable

所有已知子接口:
Camel, CamelHusk, Cat, Fox, Panda, Parrot, Wolf

public interface Sittable
一种可以坐下的动物。
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    检查此动物是否正在坐下。
    void
    setSitting(boolean sitting)
    设置此动物是否坐下。
  • 方法详细资料

    • isSitting

      boolean isSitting()
      检查此动物是否正在坐下。
      返回:
      如果正在坐下则为 true

      原文:Checks if this animal is sitting

    • setSitting

      void setSitting(boolean sitting)
      设置此动物是否坐下。将移除动物之前正在跟随的任何路径。
      参数:
      sitting - 如果坐下则为 true

      原文:Sets if this animal is sitting. Will remove any path that the animal was following beforehand.