Document replacement for Skull owner profile methods (#12195)

This commit is contained in:
Warrior 2025-02-28 20:51:39 +01:00 committed by GitHub
parent b506626824
commit 1d5e5a57e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,6 +82,8 @@ public interface Skull extends TileState {
* may appear as the texture depending on skull type. * may appear as the texture depending on skull type.
* *
* @return the profile of the owning player * @return the profile of the owning player
*
* @deprecated Use {@link #getPlayerProfile()} instead.
*/ */
@Nullable @Nullable
@Deprecated // Paper @Deprecated // Paper
@ -98,6 +100,8 @@ public interface Skull extends TileState {
* @param profile the profile of the owning player * @param profile the profile of the owning player
* @throws IllegalArgumentException if the profile does not contain the * @throws IllegalArgumentException if the profile does not contain the
* necessary information * necessary information
*
* @deprecated Use {@link #setPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile)} instead.
*/ */
@Deprecated // Paper @Deprecated // Paper
void setOwnerProfile(@Nullable PlayerProfile profile); void setOwnerProfile(@Nullable PlayerProfile profile);