mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-12 18:42:07 +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
@ -141,6 +141,26 @@ public interface Player extends HumanEntity, CommandSender {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public void playNote(Location loc, byte instrument, byte note);
|
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.
|
* Forces an update of the player's entire inventory.
|
||||||
|
Loading…
Reference in New Issue
Block a user