mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-18 16:02:19 +01:00
Update MaterialChecklist.java
This commit is contained in:
parent
ecb40624f4
commit
59452a44ac
1 changed files with 2 additions and 4 deletions
|
@ -20,12 +20,9 @@ import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.chat.HoverEvent;
|
import net.minecraft.network.chat.HoverEvent;
|
||||||
import net.minecraft.network.chat.MutableComponent;
|
import net.minecraft.network.chat.MutableComponent;
|
||||||
import net.minecraft.network.chat.Style;
|
import net.minecraft.network.chat.Style;
|
||||||
import net.minecraft.network.chat.TextComponent;
|
|
||||||
import net.minecraft.world.inventory.tooltip.TooltipComponent;
|
|
||||||
import net.minecraft.world.item.Item;
|
import net.minecraft.world.item.Item;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.item.Items;
|
import net.minecraft.world.item.Items;
|
||||||
import org.spongepowered.asm.mixin.Mutable;
|
|
||||||
|
|
||||||
public class MaterialChecklist {
|
public class MaterialChecklist {
|
||||||
|
|
||||||
|
@ -160,7 +157,8 @@ public class MaterialChecklist {
|
||||||
int remainder = amount % 64;
|
int remainder = amount % 64;
|
||||||
MutableComponent tc = Components.empty();
|
MutableComponent tc = Components.empty();
|
||||||
tc.append(Components.translatable(item.getDescriptionId())
|
tc.append(Components.translatable(item.getDescriptionId())
|
||||||
.setStyle(Style.EMPTY.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_ITEM, new HoverEvent.ItemStackInfo(item)))));
|
.setStyle(Style.EMPTY
|
||||||
|
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_ITEM, new HoverEvent.ItemStackInfo(item)))));
|
||||||
|
|
||||||
if (!unfinished)
|
if (!unfinished)
|
||||||
tc.append(" \u2714");
|
tc.append(" \u2714");
|
||||||
|
|
Loading…
Reference in a new issue