mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 07:34:48 +01:00
Added method to fake a block change request for a player. Alas, my Justin Bieber playing sign can work again!
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
27488bda7e
commit
fb2e2b7dcd
1 changed files with 20 additions and 0 deletions
|
@ -141,6 +141,26 @@ public interface Player extends HumanEntity, CommandSender {
|
|||
* @return
|
||||
*/
|
||||
public void playNote(Location loc, byte instrument, byte note);
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param loc
|
||||
* @param material
|
||||
* @param data
|
||||
*/
|
||||
public void sendBlockChange(Location loc, Material material, byte 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.
|
||||
*
|
||||
* @param loc
|
||||
* @param material
|
||||
* @param data
|
||||
*/
|
||||
public void sendBlockChange(Location loc, int material, byte data);
|
||||
|
||||
/**
|
||||
* Forces an update of the player's entire inventory.
|
||||
|
|
Loading…
Reference in a new issue