setStatistic

public abstract void setStatistic(Statistic statistic, int newValue)

Sets the given statistic for this player.

Parameters

statistic

Statistic to set

newValue

The value to set this statistic to

Throws

if the statistic requires an additional parameter


public abstract void setStatistic(Statistic statistic, Material material, int newValue)

Sets the given statistic for this player for the given material.

Parameters

statistic

Statistic to set

material

Material to offset the statistic with

newValue

The value to set this statistic to

Throws

if the given parameter is not valid for the statistic


public abstract void setStatistic(Statistic statistic, EntityType entityType, int newValue)

Sets the given statistic for this player for the given entity.

Parameters

statistic

Statistic to set

entityType

EntityType to offset the statistic with

newValue

The value to set this statistic to

Throws

if the given parameter is not valid for the statistic