Class StatisticsMock
java.lang.Object
be.seeseemelk.mockbukkit.statistic.StatisticsMock
An implementation of player statistics, similar to CraftStatistic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decrementStatistic
(@NotNull Statistic statistic, int value) Decrements the given statistic for this player.void
decrementStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType, int value) Decrements the given statistic for this player for the given entity.void
decrementStatistic
(@NotNull Statistic statistic, @NotNull Material material, int value) Decrements the given statistic for this player for the given material.int
getStatistic
(@NotNull Statistic statistic) Gets the value of the given statistic for this player.int
getStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType) Gets the value of the given statistic for this player.int
getStatistic
(@NotNull Statistic statistic, @NotNull Material material) Gets the value of the given statistic for this player.void
incrementStatistic
(@NotNull Statistic statistic, int value) Increments the given statistic for this player.void
incrementStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType, int value) Increments the given statistic for this player for the given entity.void
incrementStatistic
(@NotNull Statistic statistic, @NotNull Material material, int value) Increments the given statistic for this player for the given material.void
setStatistic
(@NotNull Statistic statistic, int value) Sets the given statistic for this player.void
setStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType, int value) Sets the given statistic for this player for the given entity.void
setStatistic
(@NotNull Statistic statistic, @NotNull Material material, int value) Sets the given statistic for this player for the given material.
-
Constructor Details
-
StatisticsMock
public StatisticsMock()
-
-
Method Details
-
setStatistic
Sets the given statistic for this player.- Parameters:
statistic
- Statistic to setvalue
- The value to set this statistic to- See Also:
-
setStatistic
public void setStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int value) Sets the given statistic for this player for the given material.- Parameters:
statistic
- Statistic to setmaterial
- Material to offset the statistic withvalue
- The value to set this statistic to- See Also:
-
setStatistic
public void setStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int value) Sets the given statistic for this player for the given entity.- Parameters:
statistic
- Statistic to setentityType
- EntityType to offset the statistic withvalue
- The value to set this statistic to- See Also:
-
incrementStatistic
Increments the given statistic for this player.- Parameters:
statistic
- Statistic to incrementvalue
- Amount to increment this statistic by- See Also:
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int value) Increments the given statistic for this player for the given material.- Parameters:
statistic
- Statistic to incrementmaterial
- Material to offset the statistic withvalue
- Amount to increment this statistic by- See Also:
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int value) Increments the given statistic for this player for the given entity.- Parameters:
statistic
- Statistic to incremententityType
- EntityType to offset the statistic withvalue
- Amount to increment this statistic by- See Also:
-
decrementStatistic
Decrements the given statistic for this player.- Parameters:
statistic
- Statistic to decrementvalue
- Amount to decrement this statistic by- See Also:
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int value) Decrements the given statistic for this player for the given material.- Parameters:
statistic
- Statistic to decrementmaterial
- Material to offset the statistic withvalue
- Amount to decrement this statistic by- See Also:
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int value) Decrements the given statistic for this player for the given entity.- Parameters:
statistic
- Statistic to decremententityType
- EntityType to offset the statistic withvalue
- Amount to decrement this statistic by for the statistic- See Also:
-
getStatistic
Gets the value of the given statistic for this player.- Parameters:
statistic
- Statistic to check- Returns:
- the value of the given statistic
- See Also:
-
getStatistic
Gets the value of the given statistic for this player.- Parameters:
statistic
- Statistic to checkmaterial
- Material offset of the statistic- Returns:
- the value of the given statistic
- See Also:
-
getStatistic
public int getStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType) Gets the value of the given statistic for this player.- Parameters:
statistic
- Statistic to checkentityType
- EntityType offset of the statistic- Returns:
- the value of the given statistic for the statistic
- See Also:
-