Skip to content

Commit

Permalink
Add tooltip to parameter copy paste card (#3781)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <[email protected]>
  • Loading branch information
serenibyss and Dream-Master authored Jan 10, 2025
1 parent 6ce7bf8 commit a37fa61
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/tectech/thing/item/ItemParametrizerMemoryCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,27 @@ public void addInformation(ItemStack aStack, EntityPlayer ep, List<String> aList
"Value 1B: " + EnumChatFormatting.AQUA
+ TTUtility.longBitsToShortString(Double.doubleToLongBits(temp)));
aList.add("Value 1s: " + EnumChatFormatting.AQUA + tNBT.getString("value1s"));
} else if (tNBT != null && tNBT.hasKey("paramList", Constants.NBT.TAG_LIST)) {
NBTTagList tagList = tNBT.getTagList("paramList", Constants.NBT.TAG_COMPOUND);
for (int hatch = 0; hatch < 10; hatch++) {
NBTTagCompound tag = tagList.getCompoundTagAt(hatch);
if (tag.hasKey("value0D", Constants.NBT.TAG_DOUBLE)
|| tag.hasKey("value1D", Constants.NBT.TAG_DOUBLE)) {
double zeroD = tag.getDouble("value0D");
double oneD = tag.getDouble("value1D");
aList.add(
"Hatch ID: " + EnumChatFormatting.AQUA
+ hatch
+ EnumChatFormatting.GRAY
+ " - Value 0D: "
+ EnumChatFormatting.AQUA
+ zeroD
+ EnumChatFormatting.GRAY
+ ", Value 1D: "
+ EnumChatFormatting.AQUA
+ oneD);
}
}
}
}

Expand Down

0 comments on commit a37fa61

Please sign in to comment.