Added the implementation of the concept of an Explosive.
This commit is contained in:
@@ -7,8 +7,6 @@ import org.bukkit.entity.Fireball;
|
||||
|
||||
/**
|
||||
* A Fireball.
|
||||
*
|
||||
* @author Cogito
|
||||
*/
|
||||
public class CraftFireball extends CraftEntity implements Fireball {
|
||||
public CraftFireball(CraftServer server, EntityFireball entity) {
|
||||
@@ -19,4 +17,20 @@ public class CraftFireball extends CraftEntity implements Fireball {
|
||||
public String toString() {
|
||||
return "CraftFireball";
|
||||
}
|
||||
|
||||
public float getYield() {
|
||||
return ((EntityFireball) getHandle()).yield;
|
||||
}
|
||||
|
||||
public boolean isIncendiary() {
|
||||
return ((EntityFireball) getHandle()).isIncendiary;
|
||||
}
|
||||
|
||||
public void setIsIncendiary(boolean isIncendiary) {
|
||||
((EntityFireball) getHandle()).isIncendiary = isIncendiary;
|
||||
}
|
||||
|
||||
public void setYield(float yield) {
|
||||
((EntityFireball) getHandle()).yield = yield;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user