Class PlayerSaveResultImpl

java.lang.Object
me.lucko.luckperms.common.storage.misc.PlayerSaveResultImpl
All Implemented Interfaces:
net.luckperms.api.model.PlayerSaveResult

public final class PlayerSaveResultImpl extends Object implements net.luckperms.api.model.PlayerSaveResult
Represents the result to a player history save operation
  • Method Details

    • cleanInsert

      public static PlayerSaveResultImpl cleanInsert()
    • noChange

      public static PlayerSaveResultImpl noChange()
    • usernameUpdated

      public static PlayerSaveResultImpl usernameUpdated(String oldUsername)
    • determineBaseResult

      public static PlayerSaveResultImpl determineBaseResult(String username, String oldUsername)
    • withOtherUuidsPresent

      public PlayerSaveResultImpl withOtherUuidsPresent(@NonNull Set<UUID> otherUuids)
      Returns a new PlayerSaveResultImpl with the PlayerSaveResult.Outcome.OTHER_UNIQUE_IDS_PRESENT_FOR_USERNAME status attached to the state of this result.
      Parameters:
      otherUuids - the other uuids
      Returns:
      a new result
    • getOutcomes

      public @NonNull Set<net.luckperms.api.model.PlayerSaveResult.Outcome> getOutcomes()
      Specified by:
      getOutcomes in interface net.luckperms.api.model.PlayerSaveResult
    • getPreviousUsername

      public @Nullable String getPreviousUsername()
      Specified by:
      getPreviousUsername in interface net.luckperms.api.model.PlayerSaveResult
    • getOtherUniqueIds

      public @Nullable Set<UUID> getOtherUniqueIds()
      Specified by:
      getOtherUniqueIds in interface net.luckperms.api.model.PlayerSaveResult
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object