Package eu.sculkpowered.server.entity
Interface TextDisplay
- All Superinterfaces:
Display,Entity,Sound.Emitter,Viewable
Represents a text display entity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.sculkpowered.server.entity.Display
Display.ConstraintNested classes/interfaces inherited from interface eu.sculkpowered.server.entity.Entity
Entity.Pose -
Method Summary
Modifier and TypeMethodDescriptionintint@NotNull ComponentgetText()bytebooleanbooleanvoidsetBackgroundColor(int backgroundColor) voidsetLineWidth(int lineWidth) voidsetSeeThrough(boolean seeThrough) voidsetShadow(boolean shadow) voidvoidsetTextOpacity(byte opacity) Methods inherited from interface eu.sculkpowered.server.entity.Display
getConstraint, getHeight, getInterpolationDelay, getInterpolationDuration, getShadowRange, getShadowStrength, getViewRange, getWidth, setConstraint, setHeight, setInterpolationDelay, setInterpolationDuration, setShadowRange, setShadowStrength, setViewRange, setWidthMethods inherited from interface eu.sculkpowered.server.entity.Entity
crouching, customName, customName, customNameVisible, customNameVisible, glowing, glowing, gravity, hasGravity, id, invisible, invisible, onFire, pose, pose, position, silent, silent, sprinting, swimming, teleport, type, uniqueId, velocity, velocity, world, worldMethods inherited from interface eu.sculkpowered.server.Viewable
addViewer, removeViewer, viewers
-
Method Details
-
getText
- Since:
- 1.0.0
-
setText
- Since:
- 1.0.0
-
getLineWidth
int getLineWidth()- Since:
- 1.0.0
-
setLineWidth
void setLineWidth(int lineWidth) - Since:
- 1.0.0
-
getBackgroundColor
int getBackgroundColor()- Since:
- 1.0.0
-
setBackgroundColor
void setBackgroundColor(int backgroundColor) - Since:
- 1.0.0
-
getTextOpacity
byte getTextOpacity()- Since:
- 1.0.0
-
setTextOpacity
void setTextOpacity(byte opacity) - Since:
- 1.0.0
-
hasShadow
boolean hasShadow()- Since:
- 1.0.0
-
setShadow
void setShadow(boolean shadow) - Since:
- 1.0.0
-
isSeeThrough
boolean isSeeThrough()- Since:
- 1.0.0
-
setSeeThrough
void setSeeThrough(boolean seeThrough) - Since:
- 1.0.0
-