Package be.seeseemelk.mockbukkit.profile
Class PlayerProfileMock
java.lang.Object
be.seeseemelk.mockbukkit.profile.PlayerProfileMock
- All Implemented Interfaces:
PlayerProfile,Cloneable,ConfigurationSerializable,PlayerProfile
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerProfileMock(@NotNull PlayerProfileMock profile) PlayerProfileMock(@NotNull OfflinePlayer player) PlayerProfileMock(@Nullable String name, @Nullable UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionvoid@NotNull PlayerProfileclone()booleancomplete(boolean textures) booleancomplete(boolean textures, boolean onlineMode) booleanbooleancompleteFromCache(boolean onlineMode) booleancompleteFromCache(boolean lookupUUID, boolean onlineMode) boolean@Nullable UUIDgetId()@Nullable StringgetName()@NotNull Set<ProfileProperty>@NotNull PlayerTextures@Nullable UUIDDeprecated.inthashCode()booleanhasProperty(@Nullable String property) booleanbooleanremoveProperty(@Nullable String property) @Nullable UUID@NotNull StringvoidsetProperties(@NotNull Collection<ProfileProperty> properties) voidsetProperty(@NotNull ProfileProperty property) voidsetTextures(@Nullable PlayerTextures textures) @NotNull StringtoString()@NotNull CompletableFuture<PlayerProfile>update()static voidvalidateSkullProfile(@NotNull PlayerProfileMock profile) Checks if a PlayerProfile is valid to be on a Skull.Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.destroystokyo.paper.profile.PlayerProfile
complete, hasTextures, removeProperties, removeProperty
-
Constructor Details
-
PlayerProfileMock
-
PlayerProfileMock
-
PlayerProfileMock
-
-
Method Details
-
getUniqueId
Deprecated.- Specified by:
getUniqueIdin interfacePlayerProfile
-
getName
- Specified by:
getNamein interfacePlayerProfile- Specified by:
getNamein interfacePlayerProfile
-
setName
- Specified by:
setNamein interfacePlayerProfile
-
getId
- Specified by:
getIdin interfacePlayerProfile
-
setId
- Specified by:
setIdin interfacePlayerProfile
-
getTextures
- Specified by:
getTexturesin interfacePlayerProfile- Specified by:
getTexturesin interfacePlayerProfile
-
setTextures
- Specified by:
setTexturesin interfacePlayerProfile- Specified by:
setTexturesin interfacePlayerProfile
-
getProperties
- Specified by:
getPropertiesin interfacePlayerProfile
-
hasProperty
- Specified by:
hasPropertyin interfacePlayerProfile
-
setProperty
- Specified by:
setPropertyin interfacePlayerProfile
-
setProperties
- Specified by:
setPropertiesin interfacePlayerProfile
-
removeProperty
- Specified by:
removePropertyin interfacePlayerProfile
-
clearProperties
public void clearProperties()- Specified by:
clearPropertiesin interfacePlayerProfile
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfacePlayerProfile- Specified by:
isCompletein interfacePlayerProfile
-
update
- Specified by:
updatein interfacePlayerProfile- Specified by:
updatein interfacePlayerProfile
-
completeFromCache
public boolean completeFromCache()- Specified by:
completeFromCachein interfacePlayerProfile
-
completeFromCache
public boolean completeFromCache(boolean onlineMode) - Specified by:
completeFromCachein interfacePlayerProfile
-
completeFromCache
public boolean completeFromCache(boolean lookupUUID, boolean onlineMode) - Specified by:
completeFromCachein interfacePlayerProfile
-
complete
public boolean complete(boolean textures) - Specified by:
completein interfacePlayerProfile
-
complete
public boolean complete(boolean textures, boolean onlineMode) - Specified by:
completein interfacePlayerProfile
-
serialize
- Specified by:
serializein interfaceConfigurationSerializable
-
hashCode
public int hashCode() -
equals
-
toString
-
clone
- Specified by:
clonein interfacePlayerProfile- Overrides:
clonein classObject
-
validateSkullProfile
Checks if a PlayerProfile is valid to be on a Skull.- Parameters:
profile- The profile to check.
-