mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes:26c37d99d5create random seeds for features using SecureRandom589bf2f1bfUpgrade gson to 2.8.8 (Closes #6370)0a6103597bGet entity default attributes (#6449)40057019e0Correctly inflate villager activation bounding box (#6798)e5f9241d15Left handed API (#6775)40ee63496cAdd advancement display API (#6175)9d570042edAdd ItemFactory#getMonsterEgg API (#6772)55ca459515rename method to getSpawnEggbb397ba74cAdd critical damage API (#6275)f47aeafe00Add Horse Animation API (#5599)7a0886180fAT & Mapping fixes (#6809)5553432644docs: Update gradle instructions for Java 16 (#6811) [ci skip]a1f49e4c60Fix command suggestion leak (#6592)9472d38f3cFix method name for Critical damage (#6813)
74 lines
2.0 KiB
Diff
74 lines
2.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
Date: Sat, 22 Aug 2020 17:42:08 -0500
|
|
Subject: [PATCH] Item entity immunities
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Item.java b/src/main/java/org/bukkit/entity/Item.java
|
|
index 0ee072645ecf1bf5feb74de6960947ef76db366e..5b9a20e0695218f1239d2bf1d0368291e2a10c06 100644
|
|
--- a/src/main/java/org/bukkit/entity/Item.java
|
|
+++ b/src/main/java/org/bukkit/entity/Item.java
|
|
@@ -120,4 +120,62 @@ public interface Item extends Entity {
|
|
*/
|
|
public void setWillAge(boolean willAge);
|
|
// Paper end
|
|
+
|
|
+ // Purpur start
|
|
+ /**
|
|
+ * Set whether or not this item is immune to cactus
|
|
+ *
|
|
+ * @param immuneToCactus True to make immune to cactus
|
|
+ */
|
|
+ void setImmuneToCactus(boolean immuneToCactus);
|
|
+
|
|
+ /**
|
|
+ * Check if item is immune to cactus
|
|
+ *
|
|
+ * @return True if immune to cactus
|
|
+ */
|
|
+ boolean isImmuneToCactus();
|
|
+
|
|
+ /**
|
|
+ * Set whether or not this item is immune to explosions
|
|
+ *
|
|
+ * @param immuneToExplosion True to make immune to explosions
|
|
+ */
|
|
+ void setImmuneToExplosion(boolean immuneToExplosion);
|
|
+
|
|
+ /**
|
|
+ * Check if item is immune to explosions
|
|
+ *
|
|
+ * @return True if immune to explosions
|
|
+ */
|
|
+ boolean isImmuneToExplosion();
|
|
+
|
|
+ /**
|
|
+ * Set whether or not this item is immune to fire
|
|
+ *
|
|
+ * @param immuneToFire True to make immune to fire
|
|
+ */
|
|
+ void setImmuneToFire(boolean immuneToFire);
|
|
+
|
|
+ /**
|
|
+ * Check if item is immune to fire
|
|
+ *
|
|
+ * @return True if immune to fire
|
|
+ */
|
|
+ boolean isImmuneToFire();
|
|
+
|
|
+ /**
|
|
+ * Set whether or not this item is immune to lightning
|
|
+ *
|
|
+ * @param immuneToLightning True to make immune to lightning
|
|
+ */
|
|
+ void setImmuneToLightning(boolean immuneToLightning);
|
|
+
|
|
+ /**
|
|
+ * Check if item is immune to lightning
|
|
+ *
|
|
+ * @return True if immune to lightning
|
|
+ */
|
|
+ boolean isImmuneToLightning();
|
|
+ // Purpur end
|
|
}
|