Package me.hsgamer.unihologram.display
Interface DisplayHologram<T>
- Type Parameters:
T- the type of the location
- All Superinterfaces:
Hologram<T>
The
Hologram that uses the new Minecraft TextDisplay API-
Method Summary
Modifier and TypeMethodDescriptionGet the text alignmentGet the background colorGet the billboardGet the origin location.floatgetScale()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 billboardvoidsetOriginLocation(T originLocation) Set the origin locationvoidsetScale(float 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 me.hsgamer.unihologram.common.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
float getScale()Get the scale of the text- Returns:
- the scale
-
setScale
void setScale(float scale) 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
-
getOriginLocation
T getOriginLocation()Get the origin location. This is the location of the text display, whileHologram.getLocation()is the location of the top of the display.- Returns:
- the origin location
-
setOriginLocation
Set the origin location- Parameters:
originLocation- the origin location- See Also:
-