Class StatisticsMock
java.lang.Object
be.seeseemelk.mockbukkit.statistic.StatisticsMock
An implementation of player statistics, similar to CraftStatistic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, int value) Decrements the given statistic for this player.voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int value) Decrements the given statistic for this player for the given material.voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int value) Decrements the given statistic for this player for the given entity.intgetStatistic(@NotNull org.bukkit.Statistic statistic) Gets the value of the given statistic for this player.intgetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material) Gets the value of the given statistic for this player.intgetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType) Gets the value of the given statistic for this player.voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, int value) Increments the given statistic for this player.voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int value) Increments the given statistic for this player for the given material.voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int value) Increments the given statistic for this player for the given entity.voidsetStatistic(@NotNull org.bukkit.Statistic statistic, int value) Sets the given statistic for this player.voidsetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int value) Sets the given statistic for this player for the given material.voidsetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int value) Sets the given statistic for this player for the given entity.
-
Constructor Details
-
StatisticsMock
public StatisticsMock()
-
-
Method Details
-
setStatistic
public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int value) 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 org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.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 org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.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
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int value) 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 org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.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 org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.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
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int value) 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 org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.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 org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.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
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) 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
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) 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 org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.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:
-