Move health stuff from LivingEntity to Entity.

This commit is contained in:
angelsl
2011-01-03 17:40:26 +08:00
committed by Dinnerbone
parent bc585f5892
commit 73755a947b
4 changed files with 25 additions and 11 deletions

View File

@@ -1,25 +1,26 @@
package org.bukkit.event.entity;
import org.bukkit.Entity;
import org.bukkit.LivingEntity;
import org.bukkit.event.Event;
/**
* Represents an LivingEntity-related event
* Represents an Entity-related event
*/
public class EntityEvent extends Event {
protected LivingEntity entity;
protected Entity entity;
public EntityEvent(final Event.Type type, final LivingEntity what)
public EntityEvent(final Event.Type type, final Entity what)
{
super(type);
entity = what;
}
/**
* Returns the LivingEntity involved in this event
* @return LivingEntity who is involved in this event
* Returns the Entity involved in this event
* @return Entity who is involved in this event
*/
public final LivingEntity getEntity()
public final Entity getEntity()
{
return entity;
}