Implementation of richer playEffect methods. Addresses BUKKIT-857

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
Bukkit/Spigot
2012-02-26 12:53:31 -05:00
parent 27fb3d2fea
commit da943825be
5 changed files with 87 additions and 18 deletions

View File

@@ -201,10 +201,19 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
*
* @param loc the location to play the effect at
* @param effect the {@link Effect}
* @param data a data bit needed for the RECORD_PLAY, SMOKE, and STEP_SOUND sounds
* @param data a data bit needed for some effects
*/
public void playEffect(Location loc, Effect effect, int data);
/**
* Plays an effect to just this player.
*
* @param loc the location to play the effect at
* @param effect the {@link Effect}
* @param data a data bit needed for some effects
*/
public <T> void playEffect(Location loc, Effect effect, T data);
/**
* Send a block change. This fakes a block change packet for a user at
* a certain location. This will not actually change the world in any way.