Class HologramData
java.lang.Object
de.oliver.fancyholograms.api.data.HologramData
- All Implemented Interfaces:
YamlData
- Direct Known Subclasses:
DisplayHologramData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanstatic final Visibilitystatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.Location@NotNull StringgetName()@NotNull HologramTypegetType()Get the type of visibility for the hologram.intfinal booleanbooleanbooleanReads the data from the given configuration section.final voidsetHasChanges(boolean hasChanges) setLinkedNpcName(String linkedNpcName) setLocation(@Nullable org.bukkit.Location location) setPersistent(boolean persistent) setVisibility(@NotNull Visibility visibility) Set the type of visibility for the hologram.setVisibilityDistance(int visibilityDistance) booleanWrites the data to the given configuration section.
-
Field Details
-
DEFAULT_VISIBILITY_DISTANCE
public static final int DEFAULT_VISIBILITY_DISTANCE- See Also:
-
DEFAULT_VISIBILITY
-
DEFAULT_IS_VISIBLE
public static final boolean DEFAULT_IS_VISIBLE- See Also:
-
DEFAULT_PERSISTENCE
public static final boolean DEFAULT_PERSISTENCE- See Also:
-
-
Constructor Details
-
HologramData
- Parameters:
name- Name of hologramtype- Type of hologramlocation- Location of hologram Default values are already set
-
-
Method Details
-
getName
-
getType
-
getLocation
@NotNull public @NotNull org.bukkit.Location getLocation() -
setLocation
-
hasChanges
public final boolean hasChanges()- Returns:
- Whether the hologram needs to send an update to players
-
setHasChanges
public final void setHasChanges(boolean hasChanges) - Parameters:
hasChanges- Whether the hologram needs to send an update to players
-
getVisibilityDistance
public int getVisibilityDistance() -
setVisibilityDistance
-
getVisibility
Get the type of visibility for the hologram.- Returns:
- type of visibility.
-
setVisibility
Set the type of visibility for the hologram. -
isPersistent
public boolean isPersistent() -
setPersistent
-
getLinkedNpcName
-
setLinkedNpcName
-
read
-
write
-
copy
-