geforkt von Mirrors/Paper
4c9bdf53ac
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 9d0ad318 Fix javadoc errors in previous commits 9501daa2 #578: Add methods to modify the rate of regeneration and starvation 197d8f3d #577: Add EntityExhaustionEvent CraftBukkit Changes: a021e334 #795: Add methods to modify the rate of regeneration and starvation 509e523c #792: Add EntityExhaustionEvent Spigot Changes: db99f821 Rebuild patches
34 Zeilen
1.1 KiB
Diff
34 Zeilen
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Jedediah Smith <jedediah@silencegreys.com>
|
|
Date: Mon, 29 Feb 2016 17:22:34 -0600
|
|
Subject: [PATCH] Player affects spawning API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
|
index c5e7e037493ffe1f1764c3ad5d3e12bfac498cb2..e3a23cef93df2bbb2f27f87150bc1dbf7fd051b5 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -1365,6 +1365,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>
|