Skip to content

Commit 4a93c68

Browse files
fancyholograms-v3: Add @ApiStatus.Internal to methods only made for internal usage
1 parent e141528 commit 4a93c68

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • plugins/fancyholograms/fh-api/src/main/java/de/oliver/fancyholograms/api/data

plugins/fancyholograms/fh-api/src/main/java/de/oliver/fancyholograms/api/data/HologramData.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ public String getWorldName() {
9191
return worldName;
9292
}
9393

94+
/**
95+
* Use setLocation instead of this method.
96+
*/
97+
@ApiStatus.Internal
9498
public HologramData setWorldName(String worldName) {
9599
this.worldName = worldName;
96100
if (this.location != null) {
@@ -106,20 +110,23 @@ public HologramData setWorldName(String worldName) {
106110
/**
107111
* @return Whether the hologram needs to send an update to players
108112
*/
113+
@ApiStatus.Internal
109114
public final boolean hasChanges() {
110115
return hasChanges;
111116
}
112117

113118
/**
114119
* @param hasChanges Whether the hologram needs to send an update to players
115120
*/
121+
@ApiStatus.Internal
116122
public final void setHasChanges(boolean hasChanges) {
117123
this.hasChanges = hasChanges;
118124
if (hasChanges && onModify != null) {
119125
onModify.run();
120126
}
121127
}
122128

129+
@ApiStatus.Internal
123130
public void setOnModify(Runnable onModify) {
124131
this.onModify = onModify;
125132
}

0 commit comments

Comments
 (0)