Class PlayerProfileMock

java.lang.Object
be.seeseemelk.mockbukkit.profile.PlayerProfileMock
All Implemented Interfaces:
com.destroystokyo.paper.profile.PlayerProfile, Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.profile.PlayerProfile

public class PlayerProfileMock extends Object implements com.destroystokyo.paper.profile.PlayerProfile
  • Constructor Details

    • PlayerProfileMock

      public PlayerProfileMock(PlayerMock player)
    • PlayerProfileMock

      public PlayerProfileMock(String name, UUID uuid)
    • PlayerProfileMock

      public PlayerProfileMock(PlayerProfileMock profile)
  • Method Details

    • getUniqueId

      @Deprecated @Nullable public @Nullable UUID getUniqueId()
      Deprecated.
      Specified by:
      getUniqueId in interface org.bukkit.profile.PlayerProfile
    • getName

      @Nullable public @Nullable String getName()
      Specified by:
      getName in interface com.destroystokyo.paper.profile.PlayerProfile
      Specified by:
      getName in interface org.bukkit.profile.PlayerProfile
    • setName

      @NotNull public @NotNull String setName(@Nullable @Nullable String name)
      Specified by:
      setName in interface com.destroystokyo.paper.profile.PlayerProfile
    • getId

      @Nullable public @Nullable UUID getId()
      Specified by:
      getId in interface com.destroystokyo.paper.profile.PlayerProfile
    • setId

      @Nullable public @Nullable UUID setId(@Nullable @Nullable UUID uuid)
      Specified by:
      setId in interface com.destroystokyo.paper.profile.PlayerProfile
    • getTextures

      @NotNull public @NotNull org.bukkit.profile.PlayerTextures getTextures()
      Specified by:
      getTextures in interface com.destroystokyo.paper.profile.PlayerProfile
      Specified by:
      getTextures in interface org.bukkit.profile.PlayerProfile
    • setTextures

      public void setTextures(@Nullable @Nullable org.bukkit.profile.PlayerTextures textures)
      Specified by:
      setTextures in interface com.destroystokyo.paper.profile.PlayerProfile
      Specified by:
      setTextures in interface org.bukkit.profile.PlayerProfile
    • getProperties

      @NotNull public @NotNull Set<com.destroystokyo.paper.profile.ProfileProperty> getProperties()
      Specified by:
      getProperties in interface com.destroystokyo.paper.profile.PlayerProfile
    • hasProperty

      public boolean hasProperty(@Nullable @Nullable String property)
      Specified by:
      hasProperty in interface com.destroystokyo.paper.profile.PlayerProfile
    • setProperty

      public void setProperty(@NotNull @NotNull com.destroystokyo.paper.profile.ProfileProperty property)
      Specified by:
      setProperty in interface com.destroystokyo.paper.profile.PlayerProfile
    • setProperties

      public void setProperties(@NotNull @NotNull Collection<com.destroystokyo.paper.profile.ProfileProperty> properties)
      Specified by:
      setProperties in interface com.destroystokyo.paper.profile.PlayerProfile
    • removeProperty

      public boolean removeProperty(@Nullable @Nullable String property)
      Specified by:
      removeProperty in interface com.destroystokyo.paper.profile.PlayerProfile
    • clearProperties

      public void clearProperties()
      Specified by:
      clearProperties in interface com.destroystokyo.paper.profile.PlayerProfile
    • isComplete

      public boolean isComplete()
      Specified by:
      isComplete in interface com.destroystokyo.paper.profile.PlayerProfile
      Specified by:
      isComplete in interface org.bukkit.profile.PlayerProfile
    • update

      @NotNull public @NotNull CompletableFuture<org.bukkit.profile.PlayerProfile> update()
      Specified by:
      update in interface org.bukkit.profile.PlayerProfile
    • clone

      public @NotNull org.bukkit.profile.PlayerProfile clone()
      Specified by:
      clone in interface org.bukkit.profile.PlayerProfile
      Overrides:
      clone in class Object
    • completeFromCache

      public boolean completeFromCache()
      Specified by:
      completeFromCache in interface com.destroystokyo.paper.profile.PlayerProfile
    • completeFromCache

      public boolean completeFromCache(boolean onlineMode)
      Specified by:
      completeFromCache in interface com.destroystokyo.paper.profile.PlayerProfile
    • completeFromCache

      public boolean completeFromCache(boolean lookupUUID, boolean onlineMode)
      Specified by:
      completeFromCache in interface com.destroystokyo.paper.profile.PlayerProfile
    • complete

      public boolean complete(boolean textures)
      Specified by:
      complete in interface com.destroystokyo.paper.profile.PlayerProfile
    • complete

      public boolean complete(boolean textures, boolean onlineMode)
      Specified by:
      complete in interface com.destroystokyo.paper.profile.PlayerProfile
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object