mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-23 15:29:34 +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
|
@Deprecated // Paper
|
||||||
public String getLocale();
|
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.
|
* Update the list of commands sent to the client.
|
||||||
* <br>
|
* <br>
|
||||||
|
|
Loading…
Add table
Reference in a new issue