Skip to content

Commit

Permalink
Added style reset to jei tooltip texts
Browse files Browse the repository at this point in the history
  • Loading branch information
tttsaurus committed Dec 14, 2024
1 parent 4945fc8 commit 0bd2b51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void getIngredients(IIngredients ingredients)
TextFormatting.DARK_AQUA +
I18n.format(event.getPotionEffect().getPotion().getName()) +
" (" + amplifierNotation + ") " + TextFormatting.RESET +
duration + "s");
duration + "s" + TextFormatting.RESET);
itemOutputs.add(Collections.singletonList(itemStack));
}
else if (eventType == BehaviorEventType.EntityConversion)
Expand All @@ -76,15 +76,15 @@ else if (eventType == BehaviorEventType.EntityConversion)
NBTTagCompound nbt2 = new NBTTagCompound();
nbt2.setTag("EntityTag", nbt1);
egg1.setTagCompound(nbt2);
egg1.setStackDisplayName(I18n.format("fluidintetweaker.jefb.behavior.entity_conversion_0") + " " + TextFormatting.DARK_AQUA + I18n.format(i18nKey1));
egg1.setStackDisplayName(I18n.format("fluidintetweaker.jefb.behavior.entity_conversion_0") + " " + TextFormatting.DARK_AQUA + I18n.format(i18nKey1) + TextFormatting.RESET);

ItemStack egg2 = new ItemStack(Items.SPAWN_EGG);
nbt1 = new NBTTagCompound();
nbt1.setString("id", event.getEntityEntryTo().getRegistryName().toString());
nbt2 = new NBTTagCompound();
nbt2.setTag("EntityTag", nbt1);
egg2.setTagCompound(nbt2);
egg2.setStackDisplayName(I18n.format("fluidintetweaker.jefb.behavior.entity_conversion_1") + " " + TextFormatting.DARK_AQUA + I18n.format(i18nKey2));
egg2.setStackDisplayName(I18n.format("fluidintetweaker.jefb.behavior.entity_conversion_1") + " " + TextFormatting.DARK_AQUA + I18n.format(i18nKey2) + TextFormatting.RESET);

itemOutputs.add(Collections.singletonList(egg1));
itemOutputs.add(Collections.singletonList(egg2));
Expand Down Expand Up @@ -119,7 +119,7 @@ else if (eventType == BehaviorEventType.BreakSurrounding)
for (IBlockState blockState: event.getBlockStates())
{
ItemStack itemStack = BlockUtils.getItemStack(blockState);
itemStack.setStackDisplayName(I18n.format("fluidintetweaker.jefb.behavior.break") + " " + TextFormatting.DARK_AQUA + itemStack.getDisplayName());
itemStack.setStackDisplayName(I18n.format("fluidintetweaker.jefb.behavior.break") + " " + TextFormatting.DARK_AQUA + itemStack.getDisplayName() + TextFormatting.RESET);
itemStacks.add(itemStack);
}
itemOutputs.add(itemStacks);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ else if (eventType == InteractionEventType.SpawnEntity)
NBTTagCompound nbt2 = new NBTTagCompound();
nbt2.setTag("EntityTag", nbt1);
egg.setTagCompound(nbt2);
egg.setStackDisplayName(I18n.format("fluidintetweaker.jefi.interaction.spawn_entity") + " " + TextFormatting.DARK_AQUA + I18n.format(i18nKey));
egg.setStackDisplayName(I18n.format("fluidintetweaker.jefi.interaction.spawn_entity") + " " + TextFormatting.DARK_AQUA + I18n.format(i18nKey) + TextFormatting.RESET);

itemOutputs.add(egg);
}
else if (eventType == InteractionEventType.SpawnEntityItem)
{
ItemStack itemStack = event.getItemStack().copy();
itemStack.setStackDisplayName(I18n.format("fluidintetweaker.jefi.interaction.spawn_entity_item") + " " + TextFormatting.DARK_AQUA + itemStack.getDisplayName());
itemStack.setStackDisplayName(I18n.format("fluidintetweaker.jefi.interaction.spawn_entity_item") + " " + TextFormatting.DARK_AQUA + itemStack.getDisplayName() + TextFormatting.RESET);
itemOutputs.add(itemStack);
}
else if (eventType == InteractionEventType.SetFluid)
Expand Down

0 comments on commit 0bd2b51

Please sign in to comment.