Update SB's affectsSpawning API to use filters

Closes GH-169
This commit is contained in:
Jedediah Smith
2016-04-13 15:57:34 -05:00
parent 1fc2eb982f
commit 4588a80cdc
5 changed files with 130 additions and 107 deletions

View File

@@ -52,10 +52,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public CraftPlayer(CraftServer server, EntityPlayer entity) {
super(server, entity);
@@ -0,0 +0,0 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
public void setViewDistance(int viewDistance) {
((WorldServer) getHandle().world).getPlayerChunkMap().updateViewDistance(getHandle(), viewDistance);
}
+
+ @Override
+ public void setResourcePack(String url, String hash) {
+ Validate.notNull(url, "Resource pack URL cannot be null");
@@ -82,7 +81,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ this.resourcePackStatus = status;
+ this.resourcePackHash = hash;
+ }
// Paper end
+
// Spigot start
private final Player.Spigot spigot = new Player.Spigot()
{
--