diff options
author | sunkid <sunkid@iminurnetz.com> | 2011-06-14 11:03:29 -0700 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-06-17 16:55:00 -0400 |
commit | fadd962b9c5457bac3bcb0379f3575592ab7178d (patch) | |
tree | e7b68d0e79bfa02bf8196b2133bad0bdc20ed9e9 /src/main/java/org | |
parent | 10fb5dc843b9edb0d8086615c2db749623664044 (diff) | |
download | craftbukkit-fadd962b9c5457bac3bcb0379f3575592ab7178d.tar craftbukkit-fadd962b9c5457bac3bcb0379f3575592ab7178d.tar.gz craftbukkit-fadd962b9c5457bac3bcb0379f3575592ab7178d.tar.lz craftbukkit-fadd962b9c5457bac3bcb0379f3575592ab7178d.tar.xz craftbukkit-fadd962b9c5457bac3bcb0379f3575592ab7178d.zip |
Added the implementation of the concept of an Explosive.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java | 18 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftTNTPrimed.java | 24 |
2 files changed, 40 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java index 364942ae..bf5429c2 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java @@ -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; + } } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftTNTPrimed.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftTNTPrimed.java index e33c8c82..c4c9b5c3 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftTNTPrimed.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftTNTPrimed.java @@ -16,4 +16,28 @@ public class CraftTNTPrimed extends CraftEntity implements TNTPrimed { return "CraftTNTPrimed"; } + public float getYield() { + return ((EntityTNTPrimed) getHandle()).yield; + } + + public boolean isIncendiary() { + return ((EntityTNTPrimed) getHandle()).isIncendiary; + } + + public void setIsIncendiary(boolean isIncendiary) { + ((EntityTNTPrimed) getHandle()).isIncendiary = isIncendiary; + } + + public void setYield(float yield) { + ((EntityTNTPrimed) getHandle()).yield = yield; + } + + public int getFuseTicks() { + return ((EntityTNTPrimed) getHandle()).a; + } + + public void setFuseTicks(int fuseTicks) { + ((EntityTNTPrimed) getHandle()).a = fuseTicks; + } + } |