diff options
author | syeyoung <cyong06@naver.com> | 2021-02-10 17:58:54 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-10 17:58:54 +0900 |
commit | b6a7d4231a245a4d0ba772761319bd180c44944d (patch) | |
tree | e253ed6275ef87426e3de5f9b5529e6bdeba7901 /src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight | |
parent | 2223e55d5d9c61f4ab93d8dab0b5f9820272c8fe (diff) | |
download | Skyblock-Dungeons-Guide-b6a7d4231a245a4d0ba772761319bd180c44944d.tar.gz Skyblock-Dungeons-Guide-b6a7d4231a245a4d0ba772761319bd180c44944d.tar.bz2 Skyblock-Dungeons-Guide-b6a7d4231a245a4d0ba772761319bd180c44944d.zip |
lots of things
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight')
7 files changed, 12 insertions, 7 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorBonzo.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorBonzo.java index 60a8411b..2932b5a9 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorBonzo.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorBonzo.java @@ -54,7 +54,7 @@ public class BossfightProcessorBonzo extends GeneralBossfightProcessor { @Override // §e﴾ §c§lBonzo§r §e71k§c❤ §e﴿ // §e﴾ §c§lBonzo§r §a250k§c❤ §e﴿ - public void onEntitySpawn(LivingEvent.LivingUpdateEvent updateEvent) { + public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lBonzo§r ") && updateEvent.entityLiving instanceof EntityArmorStand) { bonzoStand = (EntityArmorStand) updateEvent.entityLiving; } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java index b518fc07..64448edc 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java @@ -31,7 +31,7 @@ public class BossfightProcessorLivid extends GeneralBossfightProcessor { put("Arcade", "§e"); }}; @Override - public void onEntitySpawn(LivingEvent.LivingUpdateEvent updateEvent) { + public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving.getName().endsWith("Livid") && updateEvent.entityLiving instanceof EntityOtherPlayerMP) { if (!knownLivids.contains(updateEvent.entityLiving.getName())) { knownLivids.add(updateEvent.entityLiving.getName()); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorNecron.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorNecron.java index 85277e76..8988a29e 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorNecron.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorNecron.java @@ -53,7 +53,7 @@ public class BossfightProcessorNecron extends GeneralBossfightProcessor { @Override // §e﴾ §c§lBonzo§r §e71k§c❤ §e﴿ // §e﴾ §c§lBonzo§r §a250k§c❤ §e﴿ - public void onEntitySpawn(LivingEvent.LivingUpdateEvent updateEvent) { + public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving.getName().contains("❤") && updateEvent.entityLiving instanceof EntityArmorStand) { System.out.println(updateEvent.entityLiving.getName()); } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorProf.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorProf.java index e45c4c02..2bb269f6 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorProf.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorProf.java @@ -104,7 +104,7 @@ public class BossfightProcessorProf extends GeneralBossfightProcessor { private EntityArmorStand reinforcedGuard; private EntityArmorStand healthyGuard; @Override - public void onEntitySpawn(LivingEvent.LivingUpdateEvent updateEvent) { + public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving instanceof EntityArmorStand) { if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lThe Professor§r ")) profStand = (EntityArmorStand) updateEvent.entityLiving; diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorSadan.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorSadan.java index f38d6c02..60908de4 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorSadan.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorSadan.java @@ -104,7 +104,7 @@ public class BossfightProcessorSadan extends GeneralBossfightProcessor { private EntityArmorStand bigfootGiant; private EntityArmorStand boulderGiant; @Override - public void onEntitySpawn(LivingEvent.LivingUpdateEvent updateEvent) { + public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving instanceof EntityArmorStand) { if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lSadan§r ")) sadanStand = (EntityArmorStand) updateEvent.entityLiving; diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorScarf.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorScarf.java index f6be7b52..a1ee7af2 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorScarf.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorScarf.java @@ -94,7 +94,7 @@ public class BossfightProcessorScarf extends GeneralBossfightProcessor { private EntityArmorStand berserkStand; private EntityArmorStand archerStand; @Override - public void onEntitySpawn(LivingEvent.LivingUpdateEvent updateEvent) { + public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving instanceof EntityArmorStand) { if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lScarf§r ")) scarfStand = (EntityArmorStand) updateEvent.entityLiving; diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java index 511bc62d..652206c2 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java @@ -7,6 +7,7 @@ import net.minecraft.entity.boss.EntityDragon; import net.minecraft.util.IChatComponent; import net.minecraft.world.World; import net.minecraftforge.client.event.GuiScreenEvent; +import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.event.entity.living.LivingEvent; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.fml.common.gameevent.InputEvent; @@ -86,7 +87,7 @@ public abstract class GeneralBossfightProcessor implements BossfightProcessor { } @Override - public void onEntitySpawn(LivingEvent.LivingUpdateEvent updateEvent) { + public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { } @@ -104,6 +105,10 @@ public abstract class GeneralBossfightProcessor implements BossfightProcessor { public void onInteractBlock(PlayerInteractEvent event) { } + @Override + public void onEntityDeath(LivingDeathEvent deathEvent) { + + } public void onPhaseChange() {} |