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.Constraint
Nested classes/interfaces inherited from interface eu.sculkpowered.server.entity.Entity
Entity.Pose
-
Method Summary
Modifier and TypeMethodDescriptionint
int
@NotNull Component
getText()
byte
boolean
boolean
void
setBackgroundColor
(int backgroundColor) void
setLineWidth
(int lineWidth) void
setSeeThrough
(boolean seeThrough) void
setShadow
(boolean shadow) void
void
setTextOpacity
(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, setWidth
Methods 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, world
Methods 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
-