diff options
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; } |