Package org.bukkit.entity
Interface TextDisplay
- All Superinterfaces:
- CommandSender,- Display,- Entity,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator
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.Gets the text background color.intGets the maximum line width before wrapping.getText()Gets the displayed text.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(TextDisplay.TextAlignment alignment) Sets the text alignment for this display.voidsetBackgroundColor(Color color) Sets the text background color.voidsetDefaultBackground(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.voidSets the displayed text.voidsetTextOpacity(byte opacity) Sets the text opacity.Methods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.DisplaygetBillboard, getBrightness, getDisplayHeight, getDisplayWidth, getGlowColorOverride, getInterpolationDelay, getInterpolationDuration, getShadowRadius, getShadowStrength, getTeleportDuration, getTransformation, getViewRange, setBillboard, setBrightness, setDisplayHeight, setDisplayWidth, setGlowColorOverride, setInterpolationDelay, setInterpolationDuration, setShadowRadius, setShadowStrength, setTeleportDuration, setTransformation, setTransformationMatrix, setViewRangeMethods inherited from interface org.bukkit.entity.EntityaddPassenger, 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, teleportMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getTextGets the displayed text.- Returns:
- the displayed text.
 
- 
setTextSets 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
 
- 
getBackgroundColorGets the text background color.- Returns:
- the background color
 
- 
setBackgroundColorSets 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
 
 
-