接口 Display
- 所有超级接口:
CommandSender,Entity,Metadatable,Nameable,Permissible,PersistentDataHolder,ServerOperator
- 所有已知子接口:
BlockDisplay,ItemDisplay,TextDisplay
-
嵌套类概要
嵌套类修饰符和类型接口说明static enum描述实体可以围绕其旋转的轴/点.static class表示实体的亮度渲染参数.从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明获取此实体的广告牌设置.获取实体的亮度覆盖.float获取此展示实体的高度.float获取此展示实体的宽度.获取此展示实体的计分板队伍覆盖发光颜色.int获取客户端插值开始前的 tick 数.int获取此展示实体的插值持续时间.float获取此展示实体的阴影半径.float获取此展示实体的阴影强度.int获取此展示实体的传送持续时间.获取应用于此展示实体的变换.float获取此展示实体的视距/范围.voidsetBillboard(@NotNull Display.Billboard billboard) 设置此实体的广告牌设置.voidsetBrightness(@Nullable Display.Brightness brightness) 设置实体的亮度覆盖.voidsetDisplayHeight(float height) 设置此展示实体的高度.voidsetDisplayWidth(float width) 设置此展示实体的宽度.voidsetGlowColorOverride(@Nullable Color color) 设置此展示实体的计分板队伍覆盖发光颜色.voidsetInterpolationDelay(int ticks) 设置客户端插值开始前的 tick 数.voidsetInterpolationDuration(int duration) 设置此展示实体的插值持续时间.voidsetShadowRadius(float radius) 设置此展示实体的阴影半径.voidsetShadowStrength(float strength) 设置此展示实体的阴影强度.voidsetTeleportDuration(int duration) 设置此展示实体的传送持续时间.voidsetTransformation(@NotNull Transformation transformation) 设置应用于此展示实体的变换voidsetTransformationMatrix(@NotNull org.joml.Matrix4f transformationMatrix) 设置应用于此展示实体的原始变换矩阵voidsetViewRange(float range) 设置此展示实体的视距/范围.从接口继承的方法 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
获取应用于此展示实体的变换.原文:Gets the transformation applied to this display.
- 返回:
- 变换
-
setTransformation
设置应用于此展示实体的变换原文:Sets the transformation applied to this display
- 参数:
transformation- 新变换
-
setTransformationMatrix
设置应用于此展示实体的原始变换矩阵原文: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
设置此实体的广告牌设置. 广告牌设置控制实体自动旋转以面向玩家.原文:Sets the billboard setting of this entity. The billboard setting controls the automatic rotation of the entity to face the player.
- 参数:
billboard- 新设置
-
getGlowColorOverride
获取此展示实体的计分板队伍覆盖发光颜色.原文:Gets the scoreboard team overridden glow color of this display.
- 返回:
- 发光颜色
-
setGlowColorOverride
设置此展示实体的计分板队伍覆盖发光颜色.原文:Sets the scoreboard team overridden glow color of this display.
- 参数:
color- 新颜色
-
getBrightness
获取实体的亮度覆盖.原文:Gets the brightness override of the entity.
- 返回:
- 亮度覆盖 (如果已设置)
-
setBrightness
设置实体的亮度覆盖.原文:Sets the brightness override of the entity.
- 参数:
brightness- 新亮度覆盖
-