Package org.bukkit.entity
Interface TextDisplay
- All Superinterfaces:
- Audience,- CommandSender,- Display,- Entity,- HoverEventSource<HoverEvent.ShowEntity>,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- Pointered,- ServerOperator,- Sound.Emitter
Represents a text display entity.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents possible text alignments for this display.Nested classes/interfaces inherited from interface org.bukkit.entity.DisplayDisplay.Billboard, Display.BrightnessNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionGets the text alignment for this display.Deprecated.API subject to changeintGets the maximum line width before wrapping.getText()Deprecated.in favour oftext()byteGets the text opacity.booleanGets if the text has its default background.booleanGets if the text is see through.booleanGets if the text is shadowed.voidsetAlignment(@NotNull TextDisplay.TextAlignment alignment) Sets the text alignment for this display.voidsetBackgroundColor(@Nullable Color color) Deprecated.API subject to changevoidsetDefaultBackground(boolean defaultBackground) Sets if the text has its default background.voidsetLineWidth(int width) Sets the maximum line width before wrapping.voidsetSeeThrough(boolean seeThrough) Sets if the text is see through.voidsetShadowed(boolean shadow) Sets if the text is shadowed.voidDeprecated.in favour oftext(net.kyori.adventure.text.Component)voidsetTextOpacity(byte opacity) Sets the text opacity.text()Gets the displayed text.voidSets the displayed text.Methods inherited from interface net.kyori.adventure.audience.AudienceclearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSendergetName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.DisplaygetBillboard, getBrightness, getDisplayHeight, getDisplayWidth, getGlowColorOverride, getInterpolationDelay, getInterpolationDuration, getShadowRadius, getShadowStrength, getTransformation, getViewRange, setBillboard, setBrightness, setDisplayHeight, setDisplayWidth, setGlowColorOverride, setInterpolationDelay, setInterpolationDuration, setShadowRadius, setShadowStrength, setTransformation, setTransformationMatrix, setViewRangeMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, asHoverEvent, collidesAt, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablecustomName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointeredget, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getTextDeprecated.in favour oftext()Gets the displayed text.- Returns:
- the displayed text.
 
- 
setTextDeprecated.in favour oftext(net.kyori.adventure.text.Component)Sets the displayed text.- Parameters:
- text- the new text
 
- 
textGets the displayed text.- Returns:
- the displayed text
 
- 
textSets the displayed text.- Parameters:
- text- the new text
 
- 
getLineWidthint getLineWidth()Gets the maximum line width before wrapping.- Returns:
- the line width
 
- 
setLineWidthvoid setLineWidth(int width) Sets the maximum line width before wrapping.- Parameters:
- width- new line width
 
- 
getBackgroundColorDeprecated.API subject to changeGets the text background color.- Returns:
- the background color
 
- 
setBackgroundColorDeprecated.API subject to changeSets the text background color.- Parameters:
- color- new background color
 
- 
getTextOpacitybyte getTextOpacity()Gets the text opacity.- Returns:
- opacity or -1 if not set
 
- 
setTextOpacityvoid setTextOpacity(byte opacity) Sets the text opacity.- Parameters:
- opacity- new opacity or -1 if default
 
- 
isShadowedboolean isShadowed()Gets if the text is shadowed.- Returns:
- shadow status
 
- 
setShadowedvoid setShadowed(boolean shadow) Sets if the text is shadowed.- Parameters:
- shadow- if shadowed
 
- 
isSeeThroughboolean isSeeThrough()Gets if the text is see through.- Returns:
- see through status
 
- 
setSeeThroughvoid setSeeThrough(boolean seeThrough) Sets if the text is see through.- Parameters:
- seeThrough- if see through
 
- 
isDefaultBackgroundboolean isDefaultBackground()Gets if the text has its default background.- Returns:
- default background
 
- 
setDefaultBackgroundvoid setDefaultBackground(boolean defaultBackground) Sets if the text has its default background.- Parameters:
- defaultBackground- if default
 
- 
getAlignmentGets the text alignment for this display.- Returns:
- text alignment
 
- 
setAlignmentSets the text alignment for this display.- Parameters:
- alignment- new alignment
 
 
-