Interface Display

All Superinterfaces:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator
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 Link icon

    • getTransformation Link icon

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

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

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

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

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

      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.
      Returns:
      teleport duration
    • setTeleportDuration Link icon

      void setTeleportDuration(int duration)
      Sets the teleport duration of this display.
      Parameters:
      duration - new duration
      Throws:
      IllegalArgumentException - if duration is not between 0 and 59
      See Also:
    • getViewRange Link icon

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

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

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

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

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

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

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

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

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

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

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

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

      @NotNull Display.Billboard 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 Link icon

      void setBillboard(@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 Link icon

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

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

      @Nullable Display.Brightness getBrightness()
      Gets the brightness override of the entity.
      Returns:
      brightness override, if set
    • setBrightness Link icon

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