Package be.seeseemelk.mockbukkit.entity
Class OfflinePlayerMock
java.lang.Object
be.seeseemelk.mockbukkit.entity.OfflinePlayerMock
- All Implemented Interfaces:
ConfigurationSerializable,AnimalTamer,OfflinePlayer,ServerOperator
A Mock specifically for
OfflinePlayer. Not interchangeable with PlayerMock.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOfflinePlayerMock(@NotNull UUID uuid, @Nullable String name) OfflinePlayerMock(@Nullable String name) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecrementStatistic(@NotNull Statistic statistic) voiddecrementStatistic(@NotNull Statistic statistic, int amount) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull Material material) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull Material material, int amount) @Nullable Locationlong@Nullable LocationlonglongDeprecated.long@Nullable StringgetName()@Nullable Player@NotNull PlayerProfileintgetStatistic(@NotNull Statistic statistic) intgetStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) intgetStatistic(@NotNull Statistic statistic, @NotNull Material material) @NotNull UUIDbooleanvoidincrementStatistic(@NotNull Statistic statistic) voidincrementStatistic(@NotNull Statistic statistic, int amount) voidincrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) voidincrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) voidincrementStatistic(@NotNull Statistic statistic, @NotNull Material material) voidincrementStatistic(@NotNull Statistic statistic, @NotNull Material material, int amount) booleanisBanned()booleanisOnline()booleanisOp()boolean@NotNull PlayerMockjoin(@NotNull ServerMock server) voidsetOp(boolean value) voidsetStatistic(@NotNull Statistic statistic, int newValue) voidsetStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int newValue) voidsetStatistic(@NotNull Statistic statistic, @NotNull Material material, int newValue) voidsetWhitelisted(boolean value)
-
Constructor Details
-
OfflinePlayerMock
-
OfflinePlayerMock
-
-
Method Details
-
join
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceOfflinePlayer
-
getName
- Specified by:
getNamein interfaceAnimalTamer- Specified by:
getNamein interfaceOfflinePlayer
-
getUniqueId
- Specified by:
getUniqueIdin interfaceAnimalTamer- Specified by:
getUniqueIdin interfaceOfflinePlayer
-
isOp
public boolean isOp()- Specified by:
isOpin interfaceServerOperator
-
setOp
public void setOp(boolean value) - Specified by:
setOpin interfaceServerOperator
-
serialize
- Specified by:
serializein interfaceConfigurationSerializable
-
isBanned
public boolean isBanned()- Specified by:
isBannedin interfaceOfflinePlayer
-
isWhitelisted
public boolean isWhitelisted()- Specified by:
isWhitelistedin interfaceOfflinePlayer
-
setWhitelisted
public void setWhitelisted(boolean value) - Specified by:
setWhitelistedin interfaceOfflinePlayer
-
getPlayer
- Specified by:
getPlayerin interfaceOfflinePlayer
-
getFirstPlayed
public long getFirstPlayed()- Specified by:
getFirstPlayedin interfaceOfflinePlayer
-
getLastPlayed
Deprecated.- Specified by:
getLastPlayedin interfaceOfflinePlayer
-
hasPlayedBefore
public boolean hasPlayedBefore()- Specified by:
hasPlayedBeforein interfaceOfflinePlayer
-
getBedSpawnLocation
- Specified by:
getBedSpawnLocationin interfaceOfflinePlayer
-
getLastLogin
public long getLastLogin()- Specified by:
getLastLoginin interfaceOfflinePlayer
-
getLastSeen
public long getLastSeen()- Specified by:
getLastSeenin interfaceOfflinePlayer
-
incrementStatistic
- Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
- Specified by:
decrementStatisticin interfaceOfflinePlayer
-
incrementStatistic
- Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
- Specified by:
decrementStatisticin interfaceOfflinePlayer
-
setStatistic
- Specified by:
setStatisticin interfaceOfflinePlayer
-
getStatistic
- Specified by:
getStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
getStatistic
- Specified by:
getStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int amount) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int amount) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int newValue) - Specified by:
setStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType) - Specified by:
getStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int amount) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int amount) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int newValue) - Specified by:
setStatisticin interfaceOfflinePlayer
-
getLastDeathLocation
- Specified by:
getLastDeathLocationin interfaceOfflinePlayer
-
getPlayerProfile
- Specified by:
getPlayerProfilein interfaceOfflinePlayer
-