diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-14 17:36:47 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-14 17:36:47 +0000 |
commit | d73c29aad79554400b565d5f795446475c00e311 (patch) | |
tree | c4f75a0961b17cdceb2609893a5fdbf2d52e3f09 /src/main/java | |
parent | 743c623d538aa6edfbe00ffdf3d6f72671298953 (diff) | |
download | craftbukkit-d73c29aad79554400b565d5f795446475c00e311.tar craftbukkit-d73c29aad79554400b565d5f795446475c00e311.tar.gz craftbukkit-d73c29aad79554400b565d5f795446475c00e311.tar.lz craftbukkit-d73c29aad79554400b565d5f795446475c00e311.tar.xz craftbukkit-d73c29aad79554400b565d5f795446475c00e311.zip |
Implemented entity.playEffect. Thanks to main--
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 1674846c..a2aea669 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -4,6 +4,7 @@ import com.google.common.collect.MapMaker; import net.minecraft.server.*; import org.bukkit.Location; +import org.bukkit.EntityEffect; import org.bukkit.Server; import org.bukkit.World; import org.bukkit.craftbukkit.CraftServer; @@ -292,6 +293,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { return entity; } + public void playEffect(EntityEffect type) { + this.getHandle().world.a(getHandle(), type.getData()); + } + public void setHandle(final Entity entity) { this.entity = entity; } |