接口 Steerable

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

public interface Steerable extends Animals
Represents an entity which may be saddled, ridden and steered using an item.
  • 方法详细资料

    • hasSaddle

      boolean hasSaddle()
      Check if the pig has a saddle.
      返回:
      if the pig has been saddled.
    • setSaddle

      void setSaddle(boolean saddled)
      Sets if the pig has a saddle or not
      参数:
      saddled - set if the pig has a saddle or not.
    • getBoostTicks

      int getBoostTicks()
      Get the time in ticks this entity's movement is being increased. Movement speed is often increased as a result of using the getSteerMaterial().
      返回:
      the current boost ticks
    • setBoostTicks

      void setBoostTicks(int ticks)
      Set the time in ticks this entity's movement will be increased. This will reset the current boost ticks to 0 (getCurrentBoostTicks()).
      参数:
      ticks - the boost time
    • getCurrentBoostTicks

      int getCurrentBoostTicks()
      Get the time in ticks this entity's movement has been increased as of the most recent boost. Current boost ticks will never be > getBoostTicks().
      返回:
      the current boost ticks
    • setCurrentBoostTicks

      void setCurrentBoostTicks(int ticks)
      Set the time in ticks this entity's movement has been increased relative to the most recent boost.
      参数:
      ticks - the current boost ticks. Must be >= 0 and <= getBoostTicks()
    • getSteerMaterial

      @NotNull @NotNull Material getSteerMaterial()
      Get the material used to steer this entity when ridden by a player.
      返回:
      the lure material