接口 Shulker

所有超级接口:
Attributable, Colorable, CommandSender, Creature, Damageable, Enemy, Entity, Golem, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Shulker extends Golem, Colorable, Enemy
  • 方法详细资料

    • getPeek

      float getPeek()
      获取潜影贝的窥视状态,范围在0.0到1.0之间。

      原文:Gets the peek state of the shulker between 0.0 and 1.0.

      返回:
      潜影贝的窥视状态,范围在0.0到1.0之间
    • setPeek

      void setPeek(float value)
      设置潜影贝的窥视状态,应在0.0到1.0之间。

      原文:Sets the peek state of the shulker, should be in between 0.0 and 1.0.

      参数:
      value - 潜影贝的窥视状态,应在0.0到1.0之间
      抛出:
      IllegalArgumentException - 如果值超出0.0到1.0的有效范围则抛出
    • getAttachedFace

      @NotNull @NotNull BlockFace getAttachedFace()
      获取潜影贝附着的面。

      原文:Gets the face to which the shulker is attached.

      返回:
      潜影贝附着的面
    • setAttachedFace

      void setAttachedFace(@NotNull @NotNull BlockFace face)
      设置潜影贝附着的面。

      原文:Sets the face to which the shulker is attached.

      参数:
      face - 潜影贝要附着的面