Interface DisplayHologram<T>
- Type Parameters:
T
- the type of the location
- All Superinterfaces:
Hologram<T>
- All Known Implementing Classes:
FHHologram
The
Hologram
that uses the new Minecraft TextDisplay API.
Note that the location is at the bottom of the hologram. Users should check if the hologram is a DisplayHologram
before working with location.-
Method Summary
Modifier and TypeMethodDescriptionGet the text alignmentGet the background colorGet the billboardgetScale()
Get the scale of the textfloat
Get the shadow radiusfloat
Get the shadow strengthboolean
Get if the text is shadowedvoid
setAlignment
(DisplayTextAlignment alignment) Set the text alignmentvoid
setBackgroundColor
(Color color) Set the background colorvoid
setBillboard
(DisplayBillboard billboard) Set the billboardvoid
setScale
(DisplayScale scale) Set the scale of the textvoid
setShadowed
(boolean shadowed) Set if the text is shadowedvoid
setShadowRadius
(float radius) Set the shadow radiusvoid
setShadowStrength
(float strength) Set the shadow strengthMethods inherited from interface io.github.projectunified.unihologram.api.Hologram
addLine, clear, getLine, getLines, getLocation, getName, init, insertLine, isInitialized, removeLine, setLine, setLines, setLocation, size
-
Method Details
-
getBackgroundColor
Color getBackgroundColor()Get the background color- Returns:
- the background color
-
setBackgroundColor
Set the background color- Parameters:
color
- the background color
-
getScale
DisplayScale getScale()Get the scale of the text- Returns:
- the scale
-
setScale
Set the scale of the text- Parameters:
scale
- the scale
-
getShadowRadius
float getShadowRadius()Get the shadow radius- Returns:
- the shadow radius
-
setShadowRadius
void setShadowRadius(float radius) Set the shadow radius- Parameters:
radius
- the shadow radius
-
getShadowStrength
float getShadowStrength()Get the shadow strength- Returns:
- the shadow strength
-
setShadowStrength
void setShadowStrength(float strength) Set the shadow strength- Parameters:
strength
- the shadow strength
-
isShadowed
boolean isShadowed()Get if the text is shadowed- Returns:
- true if it is
-
setShadowed
void setShadowed(boolean shadowed) Set if the text is shadowed- Parameters:
shadowed
- true if it is
-
getBillboard
DisplayBillboard getBillboard()Get the billboard- Returns:
- the billboard
-
setBillboard
Set the billboard- Parameters:
billboard
- the billboard
-
getAlignment
DisplayTextAlignment getAlignment()Get the text alignment- Returns:
- the text alignment
-
setAlignment
Set the text alignment- Parameters:
alignment
- the text alignment
-