接口 Display

所有超级接口:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator
所有已知子接口:
BlockDisplay, ItemDisplay, TextDisplay

public interface Display extends Entity
展示实体, 仅具有视觉功能.
  • 方法详细资料

    • getTransformation

      @NotNull @NotNull Transformation getTransformation()
      获取应用于此展示实体的变换.

      原文:Gets the transformation applied to this display.

      返回:
      变换
    • setTransformation

      void setTransformation(@NotNull @NotNull Transformation transformation)
      设置应用于此展示实体的变换

      原文:Sets the transformation applied to this display

      参数:
      transformation - 新变换
    • setTransformationMatrix

      void setTransformationMatrix(@NotNull @NotNull org.joml.Matrix4f transformationMatrix)
      设置应用于此展示实体的原始变换矩阵

      原文:Sets the raw transformation matrix applied to this display

      参数:
      transformationMatrix - 变换矩阵
    • getInterpolationDuration

      int getInterpolationDuration()
      获取此展示实体的插值持续时间.

      原文:Gets the interpolation duration of this display.

      返回:
      插值持续时间
    • setInterpolationDuration

      void setInterpolationDuration(int duration)
      设置此展示实体的插值持续时间.

      原文:Sets the interpolation duration of this display.

      参数:
      duration - 新持续时间
    • getTeleportDuration

      int getTeleportDuration()
      获取此展示实体的传送持续时间.
      • 0 表示更新立即应用.
      • 1 表示展示实体将在一个 tick 内从当前位置移动到更新后的位置.
      • 更高的值会将移动分散到多个 tick.

      原文:Gets the teleport duration of this display.

      • 0 means that updates are applied immediately.
      • 1 means that the display entity will move from current position to the updated one over one tick.
      • Higher values spread the movement over multiple ticks.
      返回:
      传送持续时间
    • setTeleportDuration

      void setTeleportDuration(int duration)
      设置此展示实体的传送持续时间.

      原文:Sets the teleport duration of this display.

      参数:
      duration - 新持续时间
      抛出:
      IllegalArgumentException - 如果持续时间不在 0 到 59 之间
      另请参阅:
    • getViewRange

      float getViewRange()
      获取此展示实体的视距/范围.

      原文:Gets the view distance/range of this display.

      返回:
      视距
    • setViewRange

      void setViewRange(float range)
      设置此展示实体的视距/范围.

      原文:Sets the view distance/range of this display.

      参数:
      range - 新范围
    • getShadowRadius

      float getShadowRadius()
      获取此展示实体的阴影半径.

      原文:Gets the shadow radius of this display.

      返回:
      半径
    • setShadowRadius

      void setShadowRadius(float radius)
      设置此展示实体的阴影半径.

      原文:Sets the shadow radius of this display.

      参数:
      radius - 新半径
    • getShadowStrength

      float getShadowStrength()
      获取此展示实体的阴影强度.

      原文:Gets the shadow strength of this display.

      返回:
      阴影强度
    • setShadowStrength

      void setShadowStrength(float strength)
      设置此展示实体的阴影强度.

      原文:Sets the shadow strength of this display.

      参数:
      strength - 新强度
    • getDisplayWidth

      float getDisplayWidth()
      获取此展示实体的宽度.

      原文:Gets the width of this display.

      返回:
      宽度
    • setDisplayWidth

      void setDisplayWidth(float width)
      设置此展示实体的宽度.

      原文:Sets the width of this display.

      参数:
      width - 新宽度
    • getDisplayHeight

      float getDisplayHeight()
      获取此展示实体的高度.

      原文:Gets the height of this display.

      返回:
      高度
    • setDisplayHeight

      void setDisplayHeight(float height)
      设置此展示实体的高度.

      原文:Sets the height if this display.

      参数:
      height - 新高度
    • getInterpolationDelay

      int getInterpolationDelay()
      获取客户端插值开始前的 tick 数.

      原文:Gets the amount of ticks before client-side interpolation will commence.

      返回:
      插值延迟 tick 数
    • setInterpolationDelay

      void setInterpolationDelay(int ticks)
      设置客户端插值开始前的 tick 数.

      原文:Sets the amount of ticks before client-side interpolation will commence.

      参数:
      ticks - 插值延迟 tick 数
    • getBillboard

      获取此实体的广告牌设置. 广告牌设置控制实体自动旋转以面向玩家.

      原文:Gets the billboard setting of this entity. The billboard setting controls the automatic rotation of the entity to face the player.

      返回:
      广告牌设置
    • setBillboard

      void setBillboard(@NotNull @NotNull Display.Billboard billboard)
      设置此实体的广告牌设置. 广告牌设置控制实体自动旋转以面向玩家.

      原文:Sets the billboard setting of this entity. The billboard setting controls the automatic rotation of the entity to face the player.

      参数:
      billboard - 新设置
    • getGlowColorOverride

      @Nullable @Nullable Color getGlowColorOverride()
      获取此展示实体的计分板队伍覆盖发光颜色.

      原文:Gets the scoreboard team overridden glow color of this display.

      返回:
      发光颜色
    • setGlowColorOverride

      void setGlowColorOverride(@Nullable @Nullable Color color)
      设置此展示实体的计分板队伍覆盖发光颜色.

      原文:Sets the scoreboard team overridden glow color of this display.

      参数:
      color - 新颜色
    • getBrightness

      获取实体的亮度覆盖.

      原文:Gets the brightness override of the entity.

      返回:
      亮度覆盖 (如果已设置)
    • setBrightness

      void setBrightness(@Nullable @Nullable Display.Brightness brightness)
      设置实体的亮度覆盖.

      原文:Sets the brightness override of the entity.

      参数:
      brightness - 新亮度覆盖