summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java
blob: e1e54217e3d1157ed1a89c1a7fda99b5c8435c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
    }
}