Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
68 Zeilen
2.0 KiB
Diff
68 Zeilen
2.0 KiB
Diff
From 8e1fe60b678de75432cbd146c31eaa867ccf99aa Mon Sep 17 00:00:00 2001
|
|
From: md_5 <md_5@live.com.au>
|
|
Date: Sun, 2 Jun 2013 15:10:56 +1000
|
|
Subject: [PATCH] Skeleton API Implementations
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
index e06e23b..4c16040 100644
|
|
--- 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
|
|
}
|
|
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;
|
|
+ }
|
|
+ // 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 583b99c..1d97430 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
@@ -997,4 +997,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|
|
|
this.server.getScoreboardManager().setPlayerBoard(this, scoreboard);
|
|
}
|
|
+
|
|
+ // Spigot start
|
|
+ private final Spigot spigot = new Spigot()
|
|
+ {
|
|
+ };
|
|
+
|
|
+ public Spigot spigot()
|
|
+ {
|
|
+ return spigot;
|
|
+ }
|
|
+ // Spigot end
|
|
}
|
|
--
|
|
1.8.1.2
|
|
|