Events should be present tense, not paste tense.

This commit is contained in:
Erik Broes
2011-01-15 21:23:53 +01:00
parent 711c67ea1d
commit bbd7fffaac
14 changed files with 43 additions and 43 deletions

View File

@@ -0,0 +1,30 @@
package org.bukkit.event.entity;
import org.bukkit.Block;
import org.bukkit.Entity;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
/**
* Stores details for damage events where the damager is a block
*/
public class EntityDamageByBlockEvent extends EntityDamageEvent implements Cancellable {
private Block damager;
public EntityDamageByBlockEvent(Block damager, Entity damagee, DamageCause cause, int damage)
{
super(Event.Type.ENTITY_DAMAGEDBY_BLOCK, damagee, cause, damage);
this.damager = damager;
}
/**
* Returns the block that damaged the player.
* @return Block that damaged the player
*/
public Block getDamager()
{
return damager;
}
}