Interface Display

All Superinterfaces:
Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, Pointered, ServerOperator, Sound.Emitter
All Known Subinterfaces:
BlockDisplay, ItemDisplay, TextDisplay

public interface Display extends Entity
Represents a display entity which is designed to only have a visual function.
  • Method Details

    • getTransformation

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

      void setTransformation(@NotNull @NotNull Transformation transformation)
      Sets the transformation applied to this display
      Parameters:
      transformation - the new transformation
    • getInterpolationDuration

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

      void setInterpolationDuration(int duration)
      Sets the interpolation duration of this display.
      Parameters:
      duration - new duration
    • getViewRange

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

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

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

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

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

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

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

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

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

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

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

      void setInterpolationDelay(int ticks)
      Sets the amount of ticks before client-side interpolation will commence.
      Parameters:
      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.
      Returns:
      billboard setting
    • setBillboard

      @NotNull 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.
      Parameters:
      billboard - new setting
    • getGlowColorOverride

      @Nullable @Deprecated @Nullable Color getGlowColorOverride()
      Deprecated.
      API subject to change
      Gets the scoreboard team overridden glow color of this display.
      Returns:
      glow color
    • setGlowColorOverride

      @Deprecated void setGlowColorOverride(@Nullable @Nullable Color color)
      Deprecated.
      API subject to change
      Sets the scoreboard team overridden glow color of this display.
      Parameters:
      color - new color
    • getBrightness

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

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