2013-07-03 12:16:28 +08:00
|
|
|
From af557fd6f13fce2560eb4889cf556c88cc045298 Mon Sep 17 00:00:00 2001
|
2013-06-02 13:15:15 +08:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Sun, 2 Jun 2013 15:10:56 +1000
|
|
|
|
Subject: [PATCH] Skeleton API Implementations
|
|
|
|
|
|
|
|
|
2013-06-02 14:15:22 +08:00
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2013-07-02 11:03:56 +08:00
|
|
|
index e06e23b..4c16040 100644
|
2013-06-02 14:15:22 +08:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
@@ -1263,4 +1263,14 @@ public class CraftWorld implements World {
|
|
|
|
cps.queueUnload(chunk.x, chunk.z);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ // Spigot start
|
|
|
|
+ private final Spigot spigot = new Spigot()
|
|
|
|
+ {
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ public Spigot spigot()
|
|
|
|
+ {
|
|
|
|
+ return spigot;
|
|
|
|
+ }
|
|
|
|
+ // Spigot end
|
|
|
|
}
|
2013-06-02 13:15:15 +08:00
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
|
|
|
index b46b9c4..c91b12c 100644
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
|
|
|
@@ -40,4 +40,14 @@ public class CraftArrow extends AbstractProjectile implements Arrow {
|
|
|
|
public EntityType getType() {
|
|
|
|
return EntityType.ARROW;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Spigot start
|
|
|
|
+ private final Spigot spigot = new Spigot()
|
|
|
|
+ {
|
|
|
|
+ };
|
|
|
|
+ public Spigot spigot()
|
|
|
|
+ {
|
|
|
|
+ return spigot;
|
|
|
|
+ }
|
2013-06-02 13:22:22 +08:00
|
|
|
+ // Spigot end
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2013-07-03 12:16:28 +08:00
|
|
|
index 977adff..5628d84 100644
|
2013-06-02 13:22:22 +08:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2013-07-03 12:16:28 +08:00
|
|
|
@@ -1010,4 +1010,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|
|
|
public boolean isScaledHealth() {
|
|
|
|
return this.scaledHealth;
|
2013-06-02 13:22:22 +08:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Spigot start
|
|
|
|
+ private final Spigot spigot = new Spigot()
|
|
|
|
+ {
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ public Spigot spigot()
|
|
|
|
+ {
|
|
|
|
+ return spigot;
|
|
|
|
+ }
|
2013-06-02 13:15:15 +08:00
|
|
|
+ // Spigot end
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|