程序包 org.bukkit.entity

# 接口 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.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static enum`
  `Display.Billboard`
  Describes the axes/points around which the entity can pivot.
  `static class`
  `Display.Brightness`
  Represents the brightness rendering parameters of the entity.

  ## 从接口继承的嵌套类/接口 org.bukkit.entity.Entity

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Display.Billboard`
  `getBillboard()`
  Gets the billboard setting of this entity.
  `@Nullable Display.Brightness`
  `getBrightness()`
  Gets the brightness override of the entity.
  `float`
  `getDisplayHeight()`
  Gets the height of this display.
  `float`
  `getDisplayWidth()`
  Gets the width of this display.
  `@Nullable Color`
  `getGlowColorOverride()`
  Gets the scoreboard team overridden glow color of this display.
  `int`
  `getInterpolationDelay()`
  Gets the amount of ticks before client-side interpolation will commence.
  `int`
  `getInterpolationDuration()`
  Gets the interpolation duration of this display.
  `float`
  `getShadowRadius()`
  Gets the shadow radius of this display.
  `float`
  `getShadowStrength()`
  Gets the shadow strength of this display.
  `int`
  `getTeleportDuration()`
  Gets the teleport duration of this display.
  `@NotNull Transformation`
  `getTransformation()`
  Gets the transformation applied to this display.
  `float`
  `getViewRange()`
  Gets the view distance/range of this display.
  `void`
  `setBillboard(@NotNull Display.Billboard billboard)`
  Sets the billboard setting of this entity.
  `void`
  `setBrightness(@Nullable Display.Brightness brightness)`
  Sets the brightness override of the entity.
  `void`
  `setDisplayHeight(float height)`
  Sets the height if this display.
  `void`
  `setDisplayWidth(float width)`
  Sets the width of this display.
  `void`
  `setGlowColorOverride(@Nullable Color color)`
  Sets the scoreboard team overridden glow color of this display.
  `void`
  `setInterpolationDelay(int ticks)`
  Sets the amount of ticks before client-side interpolation will commence.
  `void`
  `setInterpolationDuration(int duration)`
  Sets the interpolation duration of this display.
  `void`
  `setShadowRadius(float radius)`
  Sets the shadow radius of this display.
  `void`
  `setShadowStrength(float strength)`
  Sets the shadow strength of this display.
  `void`
  `setTeleportDuration(int duration)`
  Sets the teleport duration of this display.
  `void`
  `setTransformation(@NotNull Transformation transformation)`
  Sets the transformation applied to this display
  `void`
  `setTransformationMatrix(@NotNull org.joml.Matrix4f transformationMatrix)`
  Sets the raw transformation matrix applied to this display
  `void`
  `setViewRange(float range)`
  Sets the view distance/range of this display.

  ### 从接口继承的方法 org.bukkit.command.CommandSender

  `getName, sendMessage, sendMessage, sendMessage, sendMessage`

  ### 从接口继承的方法 org.bukkit.entity.Entity

  `addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.Nameable

  `getCustomName, setCustomName`

  ### 从接口继承的方法 org.bukkit.permissions.Permissible

  `addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

  ### 从接口继承的方法 org.bukkit.permissions.ServerOperator

  `isOp, setOp`

- ## 方法详细资料

  - ### 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
    另请参阅:
      - `getTeleportDuration()`

  - ### 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

    @NotNull @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.
    返回:
      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

    @Nullable @Nullable Display.Brightness 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