Class GlobalProfileKey

java.lang.Object
org.mvplugins.multiverse.inventories.profile.key.GlobalProfileKey
Direct Known Subclasses:
ProfileFileKey

public sealed class GlobalProfileKey extends Object permits ProfileFileKey
  • Field Details

    • playerUUID

      protected final UUID playerUUID
    • playerName

      protected final String playerName
  • Constructor Details

    • GlobalProfileKey

      protected GlobalProfileKey(UUID playerUUID, String playerName)
  • Method Details

    • of

      public static GlobalProfileKey of(UUID playerUUID)
      Gets a GlobalProfileKey from a playerUUID. NOTE: Player name may be empty if player has never logged in before.
      Parameters:
      playerUUID - The player's UUID
      Returns:
      A GlobalProfileKey
    • of

      public static GlobalProfileKey of(org.bukkit.OfflinePlayer offlinePlayer)
    • of

      public static GlobalProfileKey of(UUID playerUUID, String playerName)
    • getPlayerUUID

      public UUID getPlayerUUID()
    • getPlayerName

      public String getPlayerName()
    • getOfflinePlayer

      @NotNull public @NotNull org.bukkit.OfflinePlayer getOfflinePlayer()
    • getOnlinePlayer

      @Nullable public @Nullable org.bukkit.entity.Player getOnlinePlayer()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object