Java Code Examples for org.bukkit.event.entity.EntityRegainHealthEvent#RegainReason

The following examples show how to use org.bukkit.event.entity.EntityRegainHealthEvent#RegainReason . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BonusHealEvent.java    From MarriageMaster with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @param player The player that gets a heal bonus.
 * @param marriageData The marriage data of the player.
 * @param amount The amount of health the entity will regain.
 * @param regainReason The RegainReason detailing the reason for the entity regaining health.
 */
public BonusHealEvent(@NotNull MarriagePlayer player, @NotNull Marriage marriageData, final double amount, @NotNull final EntityRegainHealthEvent.RegainReason regainReason)
{
	this.player = player;
	this.marriageData = marriageData;
	this.amount = amount;
	this.regainReason = regainReason;
}
 
Example 2
Source File: BonusHealEvent.java    From MarriageMaster with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Gets the reason for why the player is regaining health.
 *
 * @return A RegainReason detailing the reason for the entity regaining health.
 */
public @NotNull EntityRegainHealthEvent.RegainReason getRegainReason() {
	return regainReason;
}