Skip to content

Commit

Permalink
Deprecate Hologram#getDisplayEntity() method
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Nov 14, 2024
1 parent 31598f8 commit 5a79b85
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
import de.oliver.fancyholograms.api.data.HologramData;
import de.oliver.fancyholograms.api.data.TextHologramData;
import de.oliver.fancyholograms.api.data.property.Visibility;
import org.lushplugins.chatcolorhandler.ModernChatColorHandler;
import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.World;
import org.bukkit.entity.Display;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.lushplugins.chatcolorhandler.ModernChatColorHandler;

import java.util.*;

Expand Down Expand Up @@ -56,9 +57,13 @@ public String getName() {
* Returns the Display entity of this Hologram object.
* The entity is not registered in the world or server.
* Only use this method if you know what you're doing.
* <p>
* This method will return <code>null</code> in 1.20.5 and newer versions
*
* @return the Display entity of this Hologram object
*/
@ApiStatus.Internal
@Deprecated(forRemoval = true, since = "2.4.1")
public abstract @Nullable Display getDisplayEntity();

protected abstract void create();
Expand Down

0 comments on commit 5a79b85

Please sign in to comment.