aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/skyblock/entity
diff options
context:
space:
mode:
authorakarahdev <endisticbutitsforgit@gmail.com>2024-01-18 15:27:27 -0500
committerakarahdev <endisticbutitsforgit@gmail.com>2024-01-22 20:19:25 -0500
commit954ccdb5ef1c0cbe658bfae43edd9cf832854ead (patch)
tree6245a4d6d6eeb4692e13e25ed0bb474350ca4685 /src/main/java/de/hysky/skyblocker/skyblock/entity
parentffb7d6a489934ee8429146c451a54f5d7627bf64 (diff)
downloadSkyblocker-954ccdb5ef1c0cbe658bfae43edd9cf832854ead.tar.gz
Skyblocker-954ccdb5ef1c0cbe658bfae43edd9cf832854ead.tar.bz2
Skyblocker-954ccdb5ef1c0cbe658bfae43edd9cf832854ead.zip
refactor variable names
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/entity')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java b/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java
index f7fb7a3e..4f789f7b 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java
@@ -71,22 +71,22 @@ public class MobGlow {
if(SkyblockerConfigManager.get().slayer.endermanSlayer.highlightNukekubiHeads
&& entity instanceof ArmorStandEntity) {
// check for items in the armor sets
- for (net.minecraft.item.ItemStack it : entity.getArmorItems()) {
+ for (net.minecraft.item.ItemStack armorItem : entity.getArmorItems()) {
// hacky way to check if an item is a player head w/o
// some shenanigans
- if(!it.toString().startsWith("1 player_head"))
+ if(!armorItem.toString().startsWith("1 player_head"))
continue;
- if (it.hasNbt()) {
- assert it.getNbt() != null;
+ if (armorItem.hasNbt()) {
+ assert armorItem.getNbt() != null;
// eb07594e2df273921a77c101d0bfdfa1115abed5b9b2029eb496ceba9bdbb4b3 is texture id
// for the nukekubi head, compare against it to exclusively find
// armorstands that are nukekubi heads
- if (it.getNbt().contains("SkullOwner")) {
+ if (armorItem.getNbt().contains("SkullOwner")) {
// get the texture of the nukekubi head item itself and
// compare it
- var texture = it
+ var texture = armorItem
.getNbt()
.getCompound("SkullOwner")
.getCompound("Properties")
@@ -125,22 +125,22 @@ public class MobGlow {
// copypaste nukekebi head logic
if(entity instanceof ArmorStandEntity) {
- for (net.minecraft.item.ItemStack it : entity.getArmorItems()) {
+ for (net.minecraft.item.ItemStack armorItem : entity.getArmorItems()) {
// hacky way to check if an item is a player head w/o
// some shenanigans
- if(!it.toString().startsWith("1 player_head"))
+ if(!armorItem.toString().startsWith("1 player_head"))
continue;
- if (it.hasNbt()) {
- assert it.getNbt() != null;
+ if (armorItem.hasNbt()) {
+ assert armorItem.getNbt() != null;
// eb07594e2df273921a77c101d0bfdfa1115abed5b9b2029eb496ceba9bdbb4b3 is texture id
// for the nukekubi head, compare against it to exclusively find
// armorstands that are nukekubi heads
- if (it.getNbt().contains("SkullOwner")) {
+ if (armorItem.getNbt().contains("SkullOwner")) {
// get the texture of the nukekebi head item itself and
// compare it
- var texture = it
+ var texture = armorItem
.getNbt()
.getCompound("SkullOwner")
.getCompound("Properties")