Implementation of richer playEffect methods. Addresses BUKKIT-857

This commit is contained in:
Celtic Minstrel
2012-02-26 12:53:31 -05:00
committed by EvilSeph
parent 50bd232814
commit aaea53c517
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.