diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-07 05:09:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 05:09:48 +0200 |
commit | cfeac0b6a71c592b61c53fad192eb22bb24b0f54 (patch) | |
tree | 2d4cbf11b8f5b93b6d907404399ffcd8ae08e763 /src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt | |
parent | 5b76d78b62420bfa5c9cca3cb3ebc50a12e812b7 (diff) | |
download | skyhanni-cfeac0b6a71c592b61c53fad192eb22bb24b0f54.tar.gz skyhanni-cfeac0b6a71c592b61c53fad192eb22bb24b0f54.tar.bz2 skyhanni-cfeac0b6a71c592b61c53fad192eb22bb24b0f54.zip |
0.7 (#2)
* code cleanup
* Option to hide the Skyblock Level from the chat messages,
Option to change the way the Skyblock Level gets displayed in the chat
* change version to 0.6.1
* add highlight the voidling extremist in pink color
* add highlight corrupted mobs in purple color
* fixed highlight corrupted mobs in purple color in the private island
* another minor fix for highlight corrupted mobs in purple color
* created EntityHealthUpdateEvent and fixing CorruptedMobHighlight
* using EntityHealthUpdateEvent everywhere
* added marking a player with yellow color
* highlight slayer miniboss in blue color
* /copyentities now shows health correctly for every entity
* infer fix
* fixing bazaar message filter
* changelog
* hides the death messages of other players, except for players who are close to the player.
* hiding tip messages
* highlight deathmites in dungeon in red color
* code cleanup
* code cleanup
* hide tnt laying around in dungeon
* fix infer
* remove debug
* Added hide Blessings laying around in dungeon.
Added hide Revive Stones laying around in dungeon.
* Hide Premium Flesh laying around in dungeon.
* edited LorenzTest
* Added dungeon copilot and separate filter for hiding dungeon key and door messages.
* Added hide Journal Entry pages laying around in dungeon.
* Added hide Skeleton Skulls laying around in dungeon.
* credits
* Added highlight Skeleton Skulls when combining into a skeleton in orange color (not useful combined with feature Hide Skeleton Skull)
* Added highlight Skeleton Skulls when combining into a skeleton in orange color (not useful combined with feature Hide Skeleton Skull)
* fix wording
* clarification
* small fixes
* Highlight the enderman slayer Yang Glyph (Beacon) in red color (supports beacon in hand and beacon flying)
* better/more readability for CopyNearbyEntitiesCommand
* make version 0.7
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt b/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt index 1a659f171..ec813395a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt @@ -12,22 +12,23 @@ import net.minecraft.client.Minecraft import net.minecraft.entity.EntityLiving import net.minecraft.entity.item.EntityArmorStand import net.minecraftforge.client.event.RenderWorldLastEvent +import net.minecraftforge.event.world.WorldEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent class SummoningSoulsName { var tick = 0 - val texture = + private val texture = "ewogICJ0aW1lc3RhbXAiIDogMTYwMTQ3OTI2NjczMywKICAicHJvZmlsZUlkIiA6ICJmMzA1ZjA5NDI0NTg0ZjU" + "4YmEyYjY0ZjAyZDcyNDYyYyIsCiAgInByb2ZpbGVOYW1lIiA6ICJqcm9ja2EzMyIsCiAgInNpZ25hdH" + "VyZVJlcXVpcmVkIiA6IHRydWUsCiAgInRleHR1cmVzIiA6IHsKICAgICJTS0lOIiA6IHsKICAgICAgI" + "nVybCIgOiAiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS81YWY0MDM1ZWMwZGMx" + "NjkxNzc4ZDVlOTU4NDAxNzAyMjdlYjllM2UyOTQzYmVhODUzOTI5Y2U5MjNjNTk4OWFkIgogICAgfQogIH0KfQ" - val souls = mutableMapOf<EntityArmorStand, String>() - val mobsLastLocation = mutableMapOf<EntityLiving, LorenzVec>() - val mobsName = mutableMapOf<EntityLiving, String>() + private val souls = mutableMapOf<EntityArmorStand, String>() + private val mobsLastLocation = mutableMapOf<EntityLiving, LorenzVec>() + private val mobsName = mutableMapOf<EntityLiving, String>() @SubscribeEvent fun onTick(event: TickEvent.ClientTickEvent) { @@ -103,6 +104,13 @@ class SummoningSoulsName { } } + @SubscribeEvent + fun onWorldChange(event: WorldEvent.Load) { + souls.clear() + mobsLastLocation.clear() + mobsName.clear() + } + private fun isSoul(entity: EntityArmorStand): Boolean { for (stack in entity.inventory) { if (stack != null) { |