mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-23 21:39:55 +00:00
Make a generic method in order to remove tons of duplicate code that adds an item's owner and its active state to the tooltip.
This commit is contained in:
1 parent
ead07b752b
commit
aad613b221
42 files changed
+74
-408
No files matched your search
@@ -74,9 +74,7 @@ public class ItemRitualDiviner extends EnergyItems implements IRitualDiviner {
|
||||
if (!(stack.getTagCompound() == null)) {
|
||||
String ritualID = this.getCurrentRitual(stack);
|
||||
// TODO
|
||||
par3List.add(
|
||||
StatCollector.translateToLocal("tooltip.owner.currentowner") + " "
|
||||
+ stack.getTagCompound().getString("ownerName"));
|
||||
addBindingInformation(stack, par3List);
|
||||
par3List.add(StatCollector.translateToLocal("tooltip.alchemy.ritualid") + " " + ritualID);
|
||||
List<RitualComponent> ritualList = Rituals.getRitualList(this.getCurrentRitual(stack));
|
||||
if (ritualList == null) {
|
||||
|
||||
Reference in new issue
Block a user