aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-API-Patches/0004-Player-affects-spawning-API.patch
blob: 37efe0dfb689a5f23f67726942b3c8439d076e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From ca5a9ea7df0a2f0fbe9f584560528dcc1cdb1605 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 9508e84..f93dcec 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -1161,6 +1161,28 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
         public void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components) {
             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.5.msysgit.1