From d73c29aad79554400b565d5f795446475c00e311 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sat, 14 Jan 2012 17:36:47 +0000 Subject: [PATCH] Implemented entity.playEffect. Thanks to main-- --- src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 1674846c07..a2aea669c6 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; }