From 4a93c68a9eaf49da352113700a5728a2a7a8042d Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 18 May 2025 13:07:16 +0200 Subject: [PATCH] fancyholograms-v3: Add @ApiStatus.Internal to methods only made for internal usage --- .../de/oliver/fancyholograms/api/data/HologramData.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/fancyholograms/fh-api/src/main/java/de/oliver/fancyholograms/api/data/HologramData.java b/plugins/fancyholograms/fh-api/src/main/java/de/oliver/fancyholograms/api/data/HologramData.java index 3f06ae97..dc3d54b4 100644 --- a/plugins/fancyholograms/fh-api/src/main/java/de/oliver/fancyholograms/api/data/HologramData.java +++ b/plugins/fancyholograms/fh-api/src/main/java/de/oliver/fancyholograms/api/data/HologramData.java @@ -91,6 +91,10 @@ public class HologramData implements YamlData { return worldName; } + /** + * Use setLocation instead of this method. + */ + @ApiStatus.Internal public HologramData setWorldName(String worldName) { this.worldName = worldName; if (this.location != null) { @@ -106,6 +110,7 @@ public class HologramData implements YamlData { /** * @return Whether the hologram needs to send an update to players */ + @ApiStatus.Internal public final boolean hasChanges() { return hasChanges; } @@ -113,6 +118,7 @@ public class HologramData implements YamlData { /** * @param hasChanges Whether the hologram needs to send an update to players */ + @ApiStatus.Internal public final void setHasChanges(boolean hasChanges) { this.hasChanges = hasChanges; if (hasChanges && onModify != null) { @@ -120,6 +126,7 @@ public class HologramData implements YamlData { } } + @ApiStatus.Internal public void setOnModify(Runnable onModify) { this.onModify = onModify; }