2025-11-24 22:52:51 +03:00

31 lines
950 B
Java

/*
* 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<Component> builder, TooltipFlag tooltipFlag) {
builder.accept(this.getDisplayName().withStyle(ChatFormatting.GRAY));
}
public MutableComponent getDisplayName() {
return Component.translatable(this.descriptionId + ".desc");
}
}