@@ -77,11 +77,11 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
||||
*
|
||||
* @param type the damage modifier
|
||||
* @param damage the scalar value of the damage's modifier
|
||||
* @see #getFinalDamage()
|
||||
* @throws IllegalArgumentException if type is null
|
||||
* @throws UnsupportedOperationException if the caller does not support
|
||||
* the particular DamageModifier, or to rephrase, when {@link
|
||||
* #isApplicable(DamageModifier)} returns false
|
||||
* @see #getFinalDamage()
|
||||
*/
|
||||
public void setDamage(@NotNull DamageModifier type, double damage) throws IllegalArgumentException, UnsupportedOperationException {
|
||||
if (!modifiers.containsKey(type)) {
|
||||
|
||||
@@ -58,8 +58,8 @@ public class VillagerReplenishTradeEvent extends EntityEvent implements Cancella
|
||||
/**
|
||||
* Set the bonus uses added.
|
||||
*
|
||||
* @see VillagerReplenishTradeEvent#getBonus()
|
||||
* @param bonus the extra uses added
|
||||
* @see VillagerReplenishTradeEvent#getBonus()
|
||||
*/
|
||||
public void setBonus(int bonus) {
|
||||
this.bonus = bonus;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* {@link org.bukkit.event.Event Events} relating to {@link
|
||||
* org.bukkit.entity.Entity entities}, excluding some directly referencing
|
||||
* some more specific entity types.
|
||||
*/
|
||||
package org.bukkit.event.entity;
|
||||
|
||||
Reference in New Issue
Block a user