Upstream merge.

This commit is contained in:
md_5 2013-09-08 08:36:30 +10:00
parent 5c6d64a8b7
commit 89720fa208
25 changed files with 69 additions and 109 deletions

View file

@ -1,11 +1,11 @@
From 67d547e70742f6fe39e9b675cb1ede34f413ceed Mon Sep 17 00:00:00 2001
From ae6b528446bfbe1c5c5e8d4301287364f0cc8ddd Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Sun, 2 Jun 2013 15:57:09 +1000
Subject: [PATCH] Add Particle API
diff --git a/src/main/java/org/bukkit/Effect.java b/src/main/java/org/bukkit/Effect.java
index 175750f..ae1f4fd 100644
index 708bee9..62c7c11 100644
--- a/src/main/java/org/bukkit/Effect.java
+++ b/src/main/java/org/bukkit/Effect.java
@@ -5,6 +5,7 @@ import java.util.Map;
@ -16,7 +16,7 @@ index 175750f..ae1f4fd 100644
import org.bukkit.potion.Potion;
/**
@@ -78,33 +79,193 @@ public enum Effect {
@@ -78,27 +79,178 @@ public enum Effect {
/**
* The flames seen on a mobspawner; a visual effect.
*/
@ -196,9 +196,10 @@ index 175750f..ae1f4fd 100644
*
- * @return ID of this effect
+ * @return if this Effect isn't of type PARTICLE it returns ID of this effect
* @deprecated Magic value
*/
public int getId() {
return this.id;
@Deprecated
@@ -107,6 +259,15 @@ public enum Effect {
}
/**
@ -214,7 +215,7 @@ index 175750f..ae1f4fd 100644
* @return The type of the effect.
*/
public Type getType() {
@@ -112,7 +273,7 @@ public enum Effect {
@@ -114,7 +275,7 @@ public enum Effect {
}
/**
@ -223,7 +224,7 @@ index 175750f..ae1f4fd 100644
*/
public Class<?> getData() {
return this.data;
@@ -130,12 +291,32 @@ public enum Effect {
@@ -134,12 +295,32 @@ public enum Effect {
static {
for (Effect effect : values()) {
@ -259,10 +260,10 @@ index 175750f..ae1f4fd 100644
+ public enum Type {SOUND, VISUAL, PARTICLE}
}
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index c86cfbc..186bb77 100644
index 62fadda..39c72c5 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -1066,6 +1066,56 @@ public interface World extends PluginMessageRecipient, Metadatable {
@@ -1070,6 +1070,56 @@ public interface World extends PluginMessageRecipient, Metadatable {
*/
public boolean isGameRule(String rule);
@ -320,10 +321,10 @@ index c86cfbc..186bb77 100644
* Represents various map environment types that a world may be
*/
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index 39d3800..be2f4dc 100644
index cc9c3b2..8eab616 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -724,6 +724,11 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
@@ -736,6 +736,11 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
{
throw new UnsupportedOperationException( "Not supported yet." );
}