2014-04-12 06:18:37 +02:00
|
|
|
From 5e6467660d83b7174501637b4196fb749aead8cd Mon Sep 17 00:00:00 2001
|
2013-06-02 07:15:15 +02: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 08:15:22 +02:00
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2014-03-23 01:06:43 +01:00
|
|
|
index a4ede34..d9fbd00 100644
|
2013-06-02 08:15:22 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2013-12-18 07:48:18 +01:00
|
|
|
@@ -1280,4 +1280,14 @@ public class CraftWorld implements World {
|
2013-12-01 04:40:53 +01:00
|
|
|
cps.queueUnload(chunk.locX, chunk.locZ);
|
2013-06-02 08:15:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
+ // Spigot start
|
|
|
|
+ private final Spigot spigot = new Spigot()
|
|
|
|
+ {
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ public Spigot spigot()
|
|
|
|
+ {
|
|
|
|
+ return spigot;
|
|
|
|
+ }
|
|
|
|
+ // Spigot end
|
|
|
|
}
|
2013-06-02 07:15:15 +02:00
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
2014-03-23 01:06:43 +01:00
|
|
|
index 4f8d47d..09e7223 100644
|
2013-06-02 07:15:15 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
2014-01-31 21:42:29 +01:00
|
|
|
@@ -71,4 +71,15 @@ public class CraftArrow extends AbstractProjectile implements Arrow {
|
|
|
|
public void _INVALID_setShooter(LivingEntity shooter) {
|
|
|
|
getHandle().shooter = ((CraftLivingEntity) shooter).getHandle();
|
2013-06-02 07:15:15 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Spigot start
|
2013-08-03 11:59:46 +02:00
|
|
|
+ private final Arrow.Spigot spigot = new Arrow.Spigot()
|
2013-06-02 07:15:15 +02:00
|
|
|
+ {
|
|
|
|
+ };
|
2013-08-03 11:59:46 +02:00
|
|
|
+
|
|
|
|
+ public Arrow.Spigot spigot()
|
2013-06-02 07:15:15 +02:00
|
|
|
+ {
|
|
|
|
+ return spigot;
|
|
|
|
+ }
|
2013-08-03 11:54:36 +02:00
|
|
|
+ // Spigot end
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
2013-12-01 04:40:53 +01:00
|
|
|
index fe0f200..e026c1f 100644
|
2013-08-03 11:54:36 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
2013-12-01 04:40:53 +01:00
|
|
|
@@ -399,4 +399,15 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
2013-08-03 11:54:36 +02:00
|
|
|
|
|
|
|
return getHandle().vehicle.getBukkitEntity();
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Spigot start
|
|
|
|
+ private final Spigot spigot = new Spigot()
|
|
|
|
+ {
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ public Spigot spigot()
|
|
|
|
+ {
|
|
|
|
+ return spigot;
|
|
|
|
+ }
|
2013-06-02 07:22:22 +02: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
|
2014-04-12 06:18:37 +02:00
|
|
|
index b5a54c8..c1d3118 100644
|
2013-06-02 07:22:22 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2014-04-12 06:18:37 +02:00
|
|
|
@@ -1285,4 +1285,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
2013-07-24 11:29:30 +02:00
|
|
|
}
|
2014-03-23 01:06:43 +01:00
|
|
|
collection.add(new AttributeModifiable(getHandle().bb(), (new AttributeRanged("generic.maxHealth", scaledHealth ? healthScale : getMaxHealth(), 0.0D, Float.MAX_VALUE)).a("Max Health").a(true)));
|
2013-06-02 07:22:22 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Spigot start
|
2013-08-03 11:59:46 +02:00
|
|
|
+ private final Player.Spigot spigot = new Player.Spigot()
|
2013-06-02 07:22:22 +02:00
|
|
|
+ {
|
|
|
|
+ };
|
|
|
|
+
|
2013-08-03 11:59:46 +02:00
|
|
|
+ public Player.Spigot spigot()
|
2013-06-02 07:22:22 +02:00
|
|
|
+ {
|
|
|
|
+ return spigot;
|
|
|
|
+ }
|
2013-06-02 07:15:15 +02:00
|
|
|
+ // Spigot end
|
|
|
|
}
|
|
|
|
--
|
2014-04-12 06:18:37 +02:00
|
|
|
1.8.3.2
|
2013-06-02 07:15:15 +02:00
|
|
|
|