mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-23 02:55:27 +01:00
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
From ab02a56558a446bdd59ee0d545181dc1cc5c8654 Mon Sep 17 00:00:00 2001
|
|
From: chickeneer <emcchickeneer@gmail.com>
|
|
Date: Fri, 29 Nov 2019 02:48:17 -0600
|
|
Subject: [PATCH] EMC Add the PlayerThrowTridentEvent
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/ItemTrident.java | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ItemTrident.java b/src/main/java/net/minecraft/server/ItemTrident.java
|
|
index f571a1586..2997c0e98 100644
|
|
--- a/src/main/java/net/minecraft/server/ItemTrident.java
|
|
+++ b/src/main/java/net/minecraft/server/ItemTrident.java
|
|
@@ -1,6 +1,8 @@
|
|
package net.minecraft.server;
|
|
|
|
import com.google.common.collect.Multimap;
|
|
+import org.bukkit.craftbukkit.inventory.CraftItemStack;
|
|
+import org.bukkit.entity.Player;
|
|
|
|
public class ItemTrident extends Item {
|
|
|
|
@@ -62,6 +64,7 @@ public class ItemTrident extends Item {
|
|
}
|
|
return;
|
|
}
|
|
+ (new com.destroystokyo.paper.event.player.PlayerThrowTridentEvent((Player) entityhuman.getBukkitEntity(), CraftItemStack.asCraftMirror(itemstack), entitythrowntrident.getBukkitEntity())).callEvent(); // Paper
|
|
|
|
itemstack.damage(1, entityhuman, (entityhuman1) -> {
|
|
entityhuman1.broadcastItemBreak(entityliving.getRaisedHand());
|
|
--
|
|
2.25.1.windows.1
|
|
|