Class TextHologramData
java.lang.Object
de.oliver.fancyholograms.api.data.HologramData
de.oliver.fancyholograms.api.data.DisplayHologramData
de.oliver.fancyholograms.api.data.TextHologramData
- All Implemented Interfaces:
YamlData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final org.bukkit.entity.TextDisplay.TextAlignmentstatic final booleanstatic final intFields inherited from class DisplayHologramData
DEFAULT_BILLBOARD, DEFAULT_INTERPOLATION_DURATION, DEFAULT_SCALE, DEFAULT_SHADOW_RADIUS, DEFAULT_SHADOW_STRENGTH, DEFAULT_TRANSLATIONFields inherited from class HologramData
DEFAULT_IS_VISIBLE, DEFAULT_PERSISTENCE, DEFAULT_VISIBILITY, DEFAULT_VISIBILITY_DISTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.bukkit.ColorgetText()org.bukkit.entity.TextDisplay.TextAlignmentintbooleanbooleanbooleanReads the data from the given configuration section.voidremoveLine(int index) setBackground(org.bukkit.Color background) setSeeThrough(boolean seeThrough) setTextAlignment(org.bukkit.entity.TextDisplay.TextAlignment textAlignment) setTextShadow(boolean textShadow) setTextUpdateInterval(int textUpdateInterval) booleanWrites the data to the given configuration section.Methods inherited from class DisplayHologramData
getBillboard, getBrightness, getInterpolationDuration, getScale, getShadowRadius, getShadowStrength, getTranslation, setBillboard, setBrightness, setInterpolationDuration, setScale, setShadowRadius, setShadowStrength, setTranslationMethods inherited from class HologramData
getLinkedNpcName, getLocation, getName, getType, getVisibility, getVisibilityDistance, hasChanges, isPersistent, setHasChanges, setLinkedNpcName, setLocation, setPersistent, setVisibility, setVisibilityDistance
-
Field Details
-
DEFAULT_TEXT_ALIGNMENT
public static final org.bukkit.entity.TextDisplay.TextAlignment DEFAULT_TEXT_ALIGNMENT -
DEFAULT_TEXT_SHADOW_STATE
public static final boolean DEFAULT_TEXT_SHADOW_STATE- See Also:
-
DEFAULT_SEE_THROUGH
public static final boolean DEFAULT_SEE_THROUGH- See Also:
-
DEFAULT_TEXT_UPDATE_INTERVAL
public static final int DEFAULT_TEXT_UPDATE_INTERVAL- See Also:
-
-
Constructor Details
-
TextHologramData
- Parameters:
name- Name of hologramlocation- Location of hologram Default values are already set
-
-
Method Details
-
getText
-
setText
-
addLine
-
removeLine
public void removeLine(int index) -
getBackground
public org.bukkit.Color getBackground() -
setBackground
-
getTextAlignment
public org.bukkit.entity.TextDisplay.TextAlignment getTextAlignment() -
setTextAlignment
-
hasTextShadow
public boolean hasTextShadow() -
setTextShadow
-
isSeeThrough
public boolean isSeeThrough() -
setSeeThrough
-
getTextUpdateInterval
public int getTextUpdateInterval() -
setTextUpdateInterval
-
read
Description copied from interface:YamlDataReads the data from the given configuration section.- Specified by:
readin interfaceYamlData- Overrides:
readin classDisplayHologramData- Returns:
- Whether the data was read successfully.
-
write
Description copied from interface:YamlDataWrites the data to the given configuration section.- Specified by:
writein interfaceYamlData- Overrides:
writein classDisplayHologramData- Returns:
- Whether the data was written successfully.
-
copy
- Overrides:
copyin classDisplayHologramData
-