mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
Adds update chunk method for sending fake chunk updates to the client. This is to match the sendBlockChange method.
By: raphfrk <raphfrk@gmail.com>
This commit is contained in:
parent
2c4ba8815e
commit
6e1fca7350
1 changed files with 19 additions and 0 deletions
|
@ -152,6 +152,25 @@ public interface Player extends HumanEntity, CommandSender {
|
|||
*/
|
||||
public void sendBlockChange(Location loc, Material material, byte data);
|
||||
|
||||
/**
|
||||
* Send a chunk change. This fakes a chunk change packet for a user at
|
||||
* a certain location. The updated cuboid must be entirely within a single
|
||||
* chunk. This will not actually change the world in any way.
|
||||
*
|
||||
* At least one of the dimensions of the cuboid must be even. The size of the
|
||||
* data buffer must be 2.5*sx*sy*sz and formatted in accordance with the Packet51
|
||||
* format.
|
||||
*
|
||||
* @param loc The location of the cuboid
|
||||
* @param sx The x size of the cuboid
|
||||
* @param sy The y size of the cuboid
|
||||
* @param sz The z size of the cuboid
|
||||
* @param data The data to be sent
|
||||
*
|
||||
* @return true if the chunk change packet was sent
|
||||
*/
|
||||
public boolean sendChunkChange(Location loc, int sx, int sy, int sz, 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.
|
||||
|
|
Loading…
Reference in a new issue