testserver/Bukkit-Patches/0013-Add-1.6-Potion-Effects...

47 lines
1.6 KiB
Diff

From d2c9c65d41116c92c03c09aa6f90ab080358ffc2 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Mon, 8 Jul 2013 12:37:21 +1000
Subject: [PATCH] Add 1.6 Potion Effects
diff --git a/src/main/java/org/bukkit/potion/PotionEffectType.java b/src/main/java/org/bukkit/potion/PotionEffectType.java
index 536e59b..855bda1 100644
--- a/src/main/java/org/bukkit/potion/PotionEffectType.java
+++ b/src/main/java/org/bukkit/potion/PotionEffectType.java
@@ -108,6 +108,32 @@ public abstract class PotionEffectType {
* Deals damage to an entity over time and gives the health to the shooter.
*/
public static final PotionEffectType WITHER = new PotionEffectTypeWrapper(20);
+ // Spigot Start
+ /**
+ * Adds 4 HP points.
+ *
+ * @deprecated this is a Spigot API which may be subject to removal or
+ * change pending Bukkit addition.
+ */
+ @Deprecated
+ public static final PotionEffectType HEALTH_BOOST = new PotionEffectTypeWrapper( 21 );
+ /**
+ * Adds 4 absorption HP which absorb damage inflicted.
+ *
+ * @deprecated this is a Spigot API which may be subject to removal or
+ * change pending Bukkit addition.
+ */
+ @Deprecated
+ public static final PotionEffectType ABSORPTION = new PotionEffectTypeWrapper( 22 );
+ /**
+ * Causes the food meter to be replenished by 1 point each tick.
+ *
+ * @deprecated this is a Spigot API which may be subject to removal or
+ * change pending Bukkit addition.
+ */
+ @Deprecated
+ public static final PotionEffectType SATURATION = new PotionEffectTypeWrapper( 23 );
+ // Spigot End
private final int id;
--
1.8.1.2