接口 Ocelot

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

public interface Ocelot extends Animals
代表豹猫.
  • 方法详细资料

    • isTrusting

      boolean isTrusting()
      Checks if this ocelot trusts players.
      返回:
      true if it trusts players
    • setTrusting

      void setTrusting(boolean trust)
      Sets if this ocelot trusts players.
      参数:
      trust - true if it trusts players
    • getCatType

      已过时。
      猫现在是单独的实体
      获取这只猫的种类.

      原文:Gets the current type of this cat.

      返回:
      猫的种类
    • setCatType

      @Deprecated void setCatType(@NotNull @NotNull Ocelot.Type type)
      已过时。
      猫现在是单独的实体
      设置这只猫的种类.

      原文:Sets the current type of this cat.

      参数:
      type - 这只猫的新种类