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: PaperMC/Paper@f75636b [ci skip] Update my name in author field (#6625) PaperMC/Paper@d2c2b7a Implement Translatable on villager Profession (#6542) PaperMC/Paper@9087993 Mark fish and axolotls from buckets as persistent (#6392) PaperMC/Paper@aad7d37 Fix axolotl/fish persistence PaperMC/Paper@6084ac3 Fix upstream nullability on entity equipment getters (#6519) PaperMC/Paper@655cd8f Fix upstreams fix for composters and variable hoppers (#6563) PaperMC/Paper@7ac51f9 Include slot when constructing the bukkit Attribute Modifiers (#6537) PaperMC/Paper@caa4780 Add more component name methods (#6578) PaperMC/Paper@9460497 Apply furnace cook speed multiplier through event (#6378) PaperMC/Paper@f4f5a76 Fix anvil inventory events (#6157) PaperMC/Paper@1707c10 fixes cancelling PlayerTradeEvent (#5612)
32 lines
984 B
Diff
32 lines
984 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
Date: Mon, 30 Nov 2020 06:02:54 -0600
|
|
Subject: [PATCH] Left handed API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Mob.java b/src/main/java/org/bukkit/entity/Mob.java
|
|
index 07bedbc15ba2463d3c629ae68d229286d4033f79..3e03e97daa8959430cf45ed30c0e21a5943bcfed 100644
|
|
--- a/src/main/java/org/bukkit/entity/Mob.java
|
|
+++ b/src/main/java/org/bukkit/entity/Mob.java
|
|
@@ -148,4 +148,20 @@ public interface Mob extends LivingEntity, Lootable {
|
|
* @return whether the mob is aware
|
|
*/
|
|
public boolean isAware();
|
|
+
|
|
+ // Purpur start
|
|
+ /**
|
|
+ * Check if Mob is left-handed
|
|
+ *
|
|
+ * @return True if left-handed
|
|
+ */
|
|
+ public boolean isLeftHanded();
|
|
+
|
|
+ /**
|
|
+ * Set if Mob is left-handed
|
|
+ *
|
|
+ * @param leftHanded True if left-handed
|
|
+ */
|
|
+ public void setLeftHanded(boolean leftHanded);
|
|
+ // Purpur end
|
|
}
|