private void appendAttributeModifierTooltip(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) {
if (bl) {
textConsumer.accept((Text)ScreenTexts.space().append((Text)Text.translatable((String)("attribute.modifier.equals." + modifier.operation().getId()), (Object[])new Object[]{AttributeModifiersComponent.DECIMAL_FORMAT.format(e), Text.translatable((String)((EntityAttribute)attribute.value()).getTranslationKey())})).formatted(Formatting.DARK_GREEN));
} else if (d > 0.0) {
textConsumer.accept((Text)Text.translatable((String)("attribute.modifier.plus." + modifier.operation().getId()), (Object[])new Object[]{AttributeModifiersComponent.DECIMAL_FORMAT.format(e), Text.translatable((String)((EntityAttribute)attribute.value()).getTranslationKey())}).formatted(((EntityAttribute)attribute.value()).getFormatting(true)));
} else if (d < 0.0) {
textConsumer.accept((Text)Text.translatable((String)("attribute.modifier.take." + modifier.operation().getId()), (Object[])new Object[]{AttributeModifiersComponent.DECIMAL_FORMAT.format(-e), Text.translatable((String)((EntityAttribute)attribute.value()).getTranslationKey())}).formatted(((EntityAttribute)attribute.value()).getFormatting(false)));
}
}