Added entity.playEffect, thanks to main-- in an (unfortunately old) PR.

This commit is contained in:
Nathan Adams
2012-01-14 17:35:52 +00:00
parent 0467c6aa06
commit e03e2cc1c2
3 changed files with 69 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
package org.bukkit.entity;
import org.bukkit.Location;
import org.bukkit.EntityEffect;
import org.bukkit.Server;
import org.bukkit.World;
import org.bukkit.event.entity.EntityDamageEvent;
@@ -216,4 +217,13 @@ public interface Entity {
* @param value Age of entity
*/
public void setTicksLived(int value);
/**
* Performs the specified {@link EntityEffect} for this entity.
* <p>
* This will be viewable to all players near the entity.
*
* @param type Effect to play.
*/
public void playEffect(EntityEffect type);
}