2025-03-26 03:05:00 +11:00

18 lines
978 B
Diff

--- a/net/minecraft/world/level/block/entity/TileEntityBell.java
+++ b/net/minecraft/world/level/block/entity/TileEntityBell.java
@@ -133,9 +133,13 @@
}
private static void makeRaidersGlow(World world, BlockPosition blockposition, List<EntityLiving> list) {
+ List<org.bukkit.entity.LivingEntity> entities = // CraftBukkit
list.stream().filter((entityliving) -> {
return isRaiderWithinRange(blockposition, entityliving);
- }).forEach(TileEntityBell::glow);
+ }).map((entity) -> (org.bukkit.entity.LivingEntity) entity.getBukkitEntity()).collect(java.util.stream.Collectors.toCollection(java.util.ArrayList::new)); // CraftBukkit
+
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBellResonateEvent(world, blockposition, entities).forEach(TileEntityBell::glow);
+ // CraftBukkit end
}
private static void showBellParticles(World world, BlockPosition blockposition, List<EntityLiving> list) {