From e01f595cdaa97449db3c68f1b3640f1d53dbeb57 Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Thu, 15 Aug 2024 14:13:52 +0800 Subject: [PATCH] new-2 --- .../yaohun/enderdragonwar/effect/types/BlackHoleEffect.java | 5 +++++ .../enderdragonwar/effect/types/ClearInventoryEffect.java | 5 +++++ .../yaohun/enderdragonwar/effect/types/ToHeavenEffect.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/main/java/com/yaohun/enderdragonwar/effect/types/BlackHoleEffect.java b/src/main/java/com/yaohun/enderdragonwar/effect/types/BlackHoleEffect.java index f550fe5..3adad46 100644 --- a/src/main/java/com/yaohun/enderdragonwar/effect/types/BlackHoleEffect.java +++ b/src/main/java/com/yaohun/enderdragonwar/effect/types/BlackHoleEffect.java @@ -137,6 +137,11 @@ public class BlackHoleEffect extends GameGiftEffect { }.runTaskTimer(EnderDragonWar.plugin, 0L, 1L); } + @Override + public int getQueueTime() { + return 15 * 20; + } + private Set getRandomUpBlocks(Location location, int size, int amount) { List blocks = new ArrayList<>(); int minX = location.getBlockX() - size; diff --git a/src/main/java/com/yaohun/enderdragonwar/effect/types/ClearInventoryEffect.java b/src/main/java/com/yaohun/enderdragonwar/effect/types/ClearInventoryEffect.java index 25bb04e..0c0a00c 100644 --- a/src/main/java/com/yaohun/enderdragonwar/effect/types/ClearInventoryEffect.java +++ b/src/main/java/com/yaohun/enderdragonwar/effect/types/ClearInventoryEffect.java @@ -67,6 +67,11 @@ public class ClearInventoryEffect extends GameGiftEffect { }.runTaskTimer(EnderDragonWar.plugin, 10L, 4L); } + @Override + public int getQueueTime() { + return 60; + } + private List getUseableItemCount(Player player) { List useableSlots = new ArrayList<>(); for (int i = 0; i < 36; i++) { diff --git a/src/main/java/com/yaohun/enderdragonwar/effect/types/ToHeavenEffect.java b/src/main/java/com/yaohun/enderdragonwar/effect/types/ToHeavenEffect.java index a9e4f67..8031071 100644 --- a/src/main/java/com/yaohun/enderdragonwar/effect/types/ToHeavenEffect.java +++ b/src/main/java/com/yaohun/enderdragonwar/effect/types/ToHeavenEffect.java @@ -44,4 +44,9 @@ public class ToHeavenEffect extends GameGiftEffect { }.runTaskTimer(EnderDragonWar.plugin, 0L, 1L); } + @Override + public int getQueueTime() { + return 200; + } + }