Interface Ocelot

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Creature, Damageable, DataComponentView, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface Ocelot extends Animals
A wild tameable cat
Since:
1.2.2
  • Method Details

    • isTrusting

      boolean isTrusting()
      Checks if this ocelot trusts players.
      Returns:
      true if it trusts players
      Since:
      1.17
    • setTrusting

      void setTrusting(boolean trust)
      Sets if this ocelot trusts players.
      Parameters:
      trust - true if it trusts players
      Since:
      1.17
    • getCatType

      Deprecated.
      Cats are now a separate entity.
      Gets the current type of this cat.
      Returns:
      Type of the cat.
      Since:
      1.2.2
    • setCatType

      @Deprecated(since="1.19.4") void setCatType(@NotNull @NotNull Ocelot.Type type)
      Deprecated.
      Cats are now a separate entity.
      Sets the current type of this cat.
      Parameters:
      type - New type of this cat.
      Since:
      1.2.2