aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/skyblock
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
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')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java6
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java24
2 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java b/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java
index 98929e7c..667318a4 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java
@@ -11,7 +11,7 @@ import java.util.ArrayList;
import java.util.List;
public class BeaconHighlighter {
- public static List<BlockPos> positions = new ArrayList<>();
+ public static List<BlockPos> beaconPositions = new ArrayList<>();
/**
* Initializes the beacon highlighting system.
@@ -28,9 +28,9 @@ public class BeaconHighlighter {
*/
public static void render(WorldRenderContext context) {
if(Utils.isInTheEnd() && SkyblockerConfigManager.get().slayer.endermanSlayer.highlightBeacons)
- positions.forEach((it) -> RenderHelper.renderFilled(
+ beaconPositions.forEach((position) -> RenderHelper.renderFilled(
context,
- it,
+ position,
new float[]{1.0f, 0.0f, 0.0f},
0.5f,
false
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")