EntityCombustEvent

This commit is contained in:
Taylor Kelly
2011-01-10 06:51:10 +08:00
committed by Dinnerbone
parent 4e8f1190af
commit 04f5a1e82b
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package org.bukkit.event.entity;
import org.bukkit.Entity;
import org.bukkit.event.Cancellable;
/**
* The event when a skeleton or zombie catch on fire due to the sun.
* If the event is cancelled, the fire is stopped.
*/
public class EntityCombustEvent extends EntityEvent implements Cancellable {
private boolean cancel;
public EntityCombustEvent(Type type, Entity what) {
super(type, what);
this.cancel = false;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}
}