aboutsummaryrefslogtreecommitdiffhomepage
path: root/CraftBukkit-Patches/0003-Skeleton-API-Implementations.patch
diff options
context:
space:
mode:
Diffstat (limited to 'CraftBukkit-Patches/0003-Skeleton-API-Implementations.patch')
-rw-r--r--CraftBukkit-Patches/0003-Skeleton-API-Implementations.patch89
1 files changed, 89 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0003-Skeleton-API-Implementations.patch b/CraftBukkit-Patches/0003-Skeleton-API-Implementations.patch
new file mode 100644
index 0000000000..e7fe1e0c5c
--- /dev/null
+++ b/CraftBukkit-Patches/0003-Skeleton-API-Implementations.patch
@@ -0,0 +1,89 @@
+From b4a9a234fe82b8c7d7117ff6ba84daa5bb1c380b Mon Sep 17 00:00:00 2001
+From: md_5 <[email protected]>
+Date: Sun, 2 Jun 2013 15:10:56 +1000
+Subject: [PATCH] Skeleton API Implementations
+
+This contains the basic, empty implementations for some Spigot-API extensions. They are included early in the patching progress so that compilation will still succeed midway despite the APIs only being provided by subsequent patches.
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+index f4dec5b..7112c77 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+@@ -1313,4 +1313,14 @@ public class CraftWorld implements World {
+ cps.queueUnload(chunk.locX, chunk.locZ);
+ }
+ }
++ // Spigot start
++ private final Spigot spigot = new Spigot()
++ {
++ };
++
++ public Spigot spigot()
++ {
++ return spigot;
++ }
++ // Spigot end
+ }
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
+index 4f8d47d..09e7223 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
+@@ -71,4 +71,15 @@ public class CraftArrow extends AbstractProjectile implements Arrow {
+ public void _INVALID_setShooter(LivingEntity shooter) {
+ getHandle().shooter = ((CraftLivingEntity) shooter).getHandle();
+ }
++
++ // Spigot start
++ private final Arrow.Spigot spigot = new Arrow.Spigot()
++ {
++ };
++
++ public Arrow.Spigot spigot()
++ {
++ return spigot;
++ }
++ // Spigot end
+ }
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+index fe0f200..e026c1f 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+@@ -399,4 +399,15 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
+
+ return getHandle().vehicle.getBukkitEntity();
+ }
++
++ // Spigot start
++ private final Spigot spigot = new Spigot()
++ {
++ };
++
++ public Spigot spigot()
++ {
++ return spigot;
++ }
++ // Spigot end
+ }
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+index 9760f8f..6493ce7 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+@@ -1284,4 +1284,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
+ }
+ collection.add(new AttributeModifiable(getHandle().getAttributeMap(), (new AttributeRanged("generic.maxHealth", scaledHealth ? healthScale : getMaxHealth(), 0.0D, Float.MAX_VALUE)).a("Max Health").a(true)));
+ }
++
++ // Spigot start
++ private final Player.Spigot spigot = new Player.Spigot()
++ {
++ };
++
++ public Player.Spigot spigot()
++ {
++ return spigot;
++ }
++ // Spigot end
+ }
+--
+1.9.1
+