mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Player affects spawning API
This commit is contained in:
parent
e183355647
commit
978feffa80
1 changed files with 16 additions and 0 deletions
|
@ -2623,6 +2623,22 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|||
@Deprecated // Paper
|
||||
public String getLocale();
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Get whether the player can affect mob spawning
|
||||
*
|
||||
* @return if the player can affect mob spawning
|
||||
*/
|
||||
public boolean getAffectsSpawning();
|
||||
|
||||
/**
|
||||
* Set whether the player can affect mob spawning
|
||||
*
|
||||
* @param affects Whether the player can affect mob spawning
|
||||
*/
|
||||
public void setAffectsSpawning(boolean affects);
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Update the list of commands sent to the client.
|
||||
* <br>
|
||||
|
|
Loading…
Reference in a new issue