blob: fff30661f15c1c331883de0bc8efdc140a9fcee9 [file] [log] [blame] [raw]
package net.glowstone.entity.monster;
import net.glowstone.entity.meta.MetadataIndex;
import org.bukkit.Location;
import org.bukkit.entity.Blaze;
import org.bukkit.entity.EntityType;
public class GlowBlaze extends GlowMonster implements Blaze {
public GlowBlaze(Location loc) {
super(loc, EntityType.BLAZE, 20);
}
public boolean isOnFire() {
return metadata.getByte(MetadataIndex.BLAZE_ON_FIRE) == 1;
}
public void setOnFire(boolean onFire) {
metadata.set(MetadataIndex.BLAZE_ON_FIRE, onFire ? (byte) 1 : (byte) 0);
}
}