d95ac585d4
EntityHangings make a somewhat extensive calculation ever 100 ticks to check if they should die (obstruction etc). This patch makes this magic number configurable, allowing server owners to pick how often they want EntityHangings (e.g. ItemFrames) to tick. Higher values may provide a performance boost for Hanging-heavy servers.
43 Zeilen
1.3 KiB
Diff
43 Zeilen
1.3 KiB
Diff
From 9be819202ea6ab85a9acca973e090495fb40893a Mon Sep 17 00:00:00 2001
|
|
From: Jedediah Smith <jedediah@silencegreys.com>
|
|
Date: Fri, 8 Aug 2014 22:51:26 -0500
|
|
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 b2ad5b7..b2a8e2e 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -1102,6 +1102,28 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
|
{
|
|
throw new UnsupportedOperationException( "Not supported yet." );
|
|
}
|
|
+
|
|
+ /**
|
|
+ * Get whether the player affects mob spawning
|
|
+ *
|
|
+ * @return whether or not the player affects
|
|
+ * mob spawning.
|
|
+ */
|
|
+ public boolean getAffectsSpawning()
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * Set whether or not the player affects mob spawning
|
|
+ *
|
|
+ * @param affects whether or not the player should affect
|
|
+ * spawning or not.
|
|
+ */
|
|
+ public void setAffectsSpawning(boolean affects)
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet" );
|
|
+ }
|
|
}
|
|
|
|
Spigot spigot();
|
|
--
|
|
1.9.1
|
|
|