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 textfloatGet the shadow radiusfloatGet the shadow strengthbooleanGet if the text is shadowedvoidsetAlignment(DisplayTextAlignment alignment) Set the text alignmentvoidsetBackgroundColor(Color color) Set the background colorvoidsetBillboard(DisplayBillboard billboard) Set the billboardvoidsetScale(DisplayScale scale) Set the scale of the textvoidsetShadowed(boolean shadowed) Set if the text is shadowedvoidsetShadowRadius(float radius) Set the shadow radiusvoidsetShadowStrength(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
-