/* * Decompiled with CFR 0.152. */ package net.minecraft.world.item; import java.util.function.Consumer; import net.minecraft.ChatFormatting; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.TooltipFlag; import net.minecraft.world.item.component.TooltipDisplay; public class DiscFragmentItem extends Item { public DiscFragmentItem(Item.Properties properties) { super(properties); } @Override public void appendHoverText(ItemStack itemStack, Item.TooltipContext context, TooltipDisplay display, Consumer builder, TooltipFlag tooltipFlag) { builder.accept(this.getDisplayName().withStyle(ChatFormatting.GRAY)); } public MutableComponent getDisplayName() { return Component.translatable(this.descriptionId + ".desc"); } }