接口 Display

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

public interface Display extends Entity
Represents a display entity which is designed to only have a visual function.
  • 方法详细资料

    • getTransformation

      @NotNull @NotNull Transformation getTransformation()
      Gets the transformation applied to this display.
      返回:
      the transformation
    • setTransformation

      void setTransformation(@NotNull @NotNull Transformation transformation)
      Sets the transformation applied to this display
      参数:
      transformation - the new transformation
    • setTransformationMatrix

      void setTransformationMatrix(@NotNull @NotNull org.joml.Matrix4f transformationMatrix)
      Sets the raw transformation matrix applied to this display
      参数:
      transformationMatrix - the transformation matrix
    • getInterpolationDuration

      int getInterpolationDuration()
      Gets the interpolation duration of this display.
      返回:
      interpolation duration
    • setInterpolationDuration

      void setInterpolationDuration(int duration)
      Sets the interpolation duration of this display.
      参数:
      duration - new duration
    • getTeleportDuration

      int getTeleportDuration()
      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.
      返回:
      teleport duration
    • setTeleportDuration

      void setTeleportDuration(int duration)
      Sets the teleport duration of this display.
      参数:
      duration - new duration
      抛出:
      IllegalArgumentException - if duration is not between 0 and 59
      另请参阅:
    • getViewRange

      float getViewRange()
      Gets the view distance/range of this display.
      返回:
      view range
    • setViewRange

      void setViewRange(float range)
      Sets the view distance/range of this display.
      参数:
      range - new range
    • getShadowRadius

      float getShadowRadius()
      Gets the shadow radius of this display.
      返回:
      radius
    • setShadowRadius

      void setShadowRadius(float radius)
      Sets the shadow radius of this display.
      参数:
      radius - new radius
    • getShadowStrength

      float getShadowStrength()
      Gets the shadow strength of this display.
      返回:
      shadow strength
    • setShadowStrength

      void setShadowStrength(float strength)
      Sets the shadow strength of this display.
      参数:
      strength - new strength
    • getDisplayWidth

      float getDisplayWidth()
      Gets the width of this display.
      返回:
      width
    • setDisplayWidth

      void setDisplayWidth(float width)
      Sets the width of this display.
      参数:
      width - new width
    • getDisplayHeight

      float getDisplayHeight()
      Gets the height of this display.
      返回:
      height
    • setDisplayHeight

      void setDisplayHeight(float height)
      Sets the height if this display.
      参数:
      height - new height
    • getInterpolationDelay

      int getInterpolationDelay()
      Gets the amount of ticks before client-side interpolation will commence.
      返回:
      interpolation delay ticks
    • setInterpolationDelay

      void setInterpolationDelay(int ticks)
      Sets the amount of ticks before client-side interpolation will commence.
      参数:
      ticks - interpolation delay ticks
    • getBillboard

      Gets the billboard setting of this entity. The billboard setting controls the automatic rotation of the entity to face the player.
      返回:
      billboard setting
    • 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 - new setting
    • getGlowColorOverride

      @Nullable @Nullable Color getGlowColorOverride()
      Gets the scoreboard team overridden glow color of this display.
      返回:
      glow color
    • setGlowColorOverride

      void setGlowColorOverride(@Nullable @Nullable Color color)
      Sets the scoreboard team overridden glow color of this display.
      参数:
      color - new color
    • getBrightness

      Gets the brightness override of the entity.
      返回:
      brightness override, if set
    • setBrightness

      void setBrightness(@Nullable @Nullable Display.Brightness brightness)
      Sets the brightness override of the entity.
      参数:
      brightness - new brightness override