Package be.seeseemelk.mockbukkit.entity
Class OfflinePlayerMock
java.lang.Object
be.seeseemelk.mockbukkit.entity.OfflinePlayerMock
- All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.entity.AnimalTamer,org.bukkit.OfflinePlayer,org.bukkit.permissions.ServerOperator
A Mock specifically for
OfflinePlayer. Not interchangeable with PlayerMock.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecrementStatistic(@NotNull org.bukkit.Statistic statistic) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, int amount) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int amount) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int amount) @Nullable org.bukkit.Locationlong@Nullable org.bukkit.LocationlonglongDeprecated.long@Nullable StringgetName()@Nullable org.bukkit.entity.Player@NotNull org.bukkit.profile.PlayerProfileintgetStatistic(@NotNull org.bukkit.Statistic statistic) intgetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType) intgetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material) @NotNull UUIDbooleanvoidincrementStatistic(@NotNull org.bukkit.Statistic statistic) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, int amount) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int amount) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int amount) booleanisBanned()booleanisOnline()booleanisOp()booleanjoin(ServerMock server) voidsetOp(boolean value) voidsetStatistic(@NotNull org.bukkit.Statistic statistic, int newValue) voidsetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int newValue) voidsetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int newValue) voidsetWhitelisted(boolean value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.OfflinePlayer
banPlayer, banPlayer, banPlayer, banPlayer, banPlayer
-
Constructor Details
-
OfflinePlayerMock
-
OfflinePlayerMock
-
-
Method Details
-
join
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceorg.bukkit.OfflinePlayer
-
getName
- Specified by:
getNamein interfaceorg.bukkit.entity.AnimalTamer- Specified by:
getNamein interfaceorg.bukkit.OfflinePlayer
-
getUniqueId
- Specified by:
getUniqueIdin interfaceorg.bukkit.entity.AnimalTamer- Specified by:
getUniqueIdin interfaceorg.bukkit.OfflinePlayer
-
isOp
public boolean isOp()- Specified by:
isOpin interfaceorg.bukkit.permissions.ServerOperator
-
setOp
public void setOp(boolean value) - Specified by:
setOpin interfaceorg.bukkit.permissions.ServerOperator
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
-
isBanned
public boolean isBanned()- Specified by:
isBannedin interfaceorg.bukkit.OfflinePlayer
-
isWhitelisted
public boolean isWhitelisted()- Specified by:
isWhitelistedin interfaceorg.bukkit.OfflinePlayer
-
setWhitelisted
public void setWhitelisted(boolean value) - Specified by:
setWhitelistedin interfaceorg.bukkit.OfflinePlayer
-
getPlayer
@Nullable public @Nullable org.bukkit.entity.Player getPlayer()- Specified by:
getPlayerin interfaceorg.bukkit.OfflinePlayer
-
getFirstPlayed
public long getFirstPlayed()- Specified by:
getFirstPlayedin interfaceorg.bukkit.OfflinePlayer
-
getLastPlayed
Deprecated.- Specified by:
getLastPlayedin interfaceorg.bukkit.OfflinePlayer
-
hasPlayedBefore
public boolean hasPlayedBefore()- Specified by:
hasPlayedBeforein interfaceorg.bukkit.OfflinePlayer
-
getBedSpawnLocation
@Nullable public @Nullable org.bukkit.Location getBedSpawnLocation()- Specified by:
getBedSpawnLocationin interfaceorg.bukkit.OfflinePlayer
-
getLastLogin
public long getLastLogin()- Specified by:
getLastLoginin interfaceorg.bukkit.OfflinePlayer
-
getLastSeen
public long getLastSeen()- Specified by:
getLastSeenin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int newValue) - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int newValue) - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int newValue) - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer
-
getLastDeathLocation
@Nullable public @Nullable org.bukkit.Location getLastDeathLocation()- Specified by:
getLastDeathLocationin interfaceorg.bukkit.OfflinePlayer
-
getPlayerProfile
@NotNull public @NotNull org.bukkit.profile.PlayerProfile getPlayerProfile()- Specified by:
getPlayerProfilein interfaceorg.bukkit.OfflinePlayer
-