Package be.seeseemelk.mockbukkit.profile
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 Summary
ConstructorsConstructorDescriptionPlayerProfileMock(PlayerMock player) PlayerProfileMock(PlayerProfileMock profile) PlayerProfileMock(String name, UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionvoid@NotNull org.bukkit.profile.PlayerProfileclone()booleancomplete(boolean textures) booleancomplete(boolean textures, boolean onlineMode) booleanbooleancompleteFromCache(boolean onlineMode) booleancompleteFromCache(boolean lookupUUID, boolean onlineMode) boolean@Nullable UUIDgetId()@Nullable StringgetName()@NotNull Set<com.destroystokyo.paper.profile.ProfileProperty>@NotNull org.bukkit.profile.PlayerTextures@Nullable UUIDDeprecated.inthashCode()booleanhasProperty(@Nullable String property) booleanbooleanremoveProperty(@Nullable String property) @Nullable UUID@NotNull StringvoidsetProperties(@NotNull Collection<com.destroystokyo.paper.profile.ProfileProperty> properties) voidsetProperty(@NotNull com.destroystokyo.paper.profile.ProfileProperty property) voidsetTextures(@Nullable org.bukkit.profile.PlayerTextures textures) toString()@NotNull CompletableFuture<org.bukkit.profile.PlayerProfile>update()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 interfaceorg.bukkit.profile.PlayerProfile
-
getName
- Specified by:
getNamein interfacecom.destroystokyo.paper.profile.PlayerProfile- Specified by:
getNamein interfaceorg.bukkit.profile.PlayerProfile
-
setName
- Specified by:
setNamein interfacecom.destroystokyo.paper.profile.PlayerProfile
-
getId
- Specified by:
getIdin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
setId
- Specified by:
setIdin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
getTextures
@NotNull public @NotNull org.bukkit.profile.PlayerTextures getTextures()- Specified by:
getTexturesin interfacecom.destroystokyo.paper.profile.PlayerProfile- Specified by:
getTexturesin interfaceorg.bukkit.profile.PlayerProfile
-
setTextures
public void setTextures(@Nullable @Nullable org.bukkit.profile.PlayerTextures textures) - Specified by:
setTexturesin interfacecom.destroystokyo.paper.profile.PlayerProfile- Specified by:
setTexturesin interfaceorg.bukkit.profile.PlayerProfile
-
getProperties
- Specified by:
getPropertiesin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
hasProperty
- Specified by:
hasPropertyin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
setProperty
public void setProperty(@NotNull @NotNull com.destroystokyo.paper.profile.ProfileProperty property) - Specified by:
setPropertyin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
setProperties
public void setProperties(@NotNull @NotNull Collection<com.destroystokyo.paper.profile.ProfileProperty> properties) - Specified by:
setPropertiesin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
removeProperty
- Specified by:
removePropertyin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
clearProperties
public void clearProperties()- Specified by:
clearPropertiesin interfacecom.destroystokyo.paper.profile.PlayerProfile
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfacecom.destroystokyo.paper.profile.PlayerProfile- Specified by:
isCompletein interfaceorg.bukkit.profile.PlayerProfile
-
update
- Specified by:
updatein interfaceorg.bukkit.profile.PlayerProfile
-
clone
public @NotNull org.bukkit.profile.PlayerProfile clone() -
completeFromCache
public boolean completeFromCache()- Specified by:
completeFromCachein interfacecom.destroystokyo.paper.profile.PlayerProfile
-
completeFromCache
public boolean completeFromCache(boolean onlineMode) - Specified by:
completeFromCachein interfacecom.destroystokyo.paper.profile.PlayerProfile
-
completeFromCache
public boolean completeFromCache(boolean lookupUUID, boolean onlineMode) - Specified by:
completeFromCachein interfacecom.destroystokyo.paper.profile.PlayerProfile
-
complete
public boolean complete(boolean textures) - Specified by:
completein interfacecom.destroystokyo.paper.profile.PlayerProfile
-
complete
public boolean complete(boolean textures, boolean onlineMode) - Specified by:
completein interfacecom.destroystokyo.paper.profile.PlayerProfile
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
-
equals
-
toString
-
hashCode
public int hashCode()
-