|
7 | 7 | import gregtech.api.mui.drawable.GTObjectDrawable; |
8 | 8 | import gregtech.api.util.GTLog; |
9 | 9 | import gregtech.api.util.ItemStackHashStrategy; |
| 10 | +import gregtech.api.util.KeyUtil; |
10 | 11 | import gregtech.client.renderer.texture.Textures; |
11 | 12 | import gregtech.common.metatileentities.multi.multiblockpart.appeng.stack.IWrappedStack; |
12 | 13 | import gregtech.common.metatileentities.multi.multiblockpart.appeng.stack.WrappedItemStack; |
|
17 | 18 | import net.minecraft.nbt.NBTTagCompound; |
18 | 19 | import net.minecraft.nbt.NBTTagList; |
19 | 20 | import net.minecraft.util.ResourceLocation; |
| 21 | +import net.minecraft.util.text.TextFormatting; |
20 | 22 | import net.minecraft.world.World; |
21 | 23 | import net.minecraftforge.common.util.Constants; |
22 | 24 | import net.minecraftforge.fml.relauncher.Side; |
|
28 | 30 | import codechicken.lib.render.CCRenderState; |
29 | 31 | import codechicken.lib.render.pipeline.IVertexOperation; |
30 | 32 | import codechicken.lib.vec.Matrix4; |
31 | | -import com.cleanroommc.modularui.api.drawable.IKey; |
32 | 33 | import com.cleanroommc.modularui.drawable.text.RichText; |
33 | 34 | import com.cleanroommc.modularui.utils.serialization.IByteBufDeserializer; |
34 | 35 | import org.jetbrains.annotations.NotNull; |
@@ -66,8 +67,7 @@ protected void addStackLine(@NotNull RichText text, @NotNull IWrappedStack<IAEIt |
66 | 67 | .tooltipAutoUpdate(true) |
67 | 68 | .tooltipBuilder(tooltip -> tooltip.addFromItem(stack))); |
68 | 69 | text.space(); |
69 | | - text.addLine(IKey.str("%dx %s", wrappedStack.getStackSize(), stack.getDisplayName()) |
70 | | - .color(0xFFFFFF)); |
| 70 | + text.addLine(KeyUtil.number(TextFormatting.WHITE, wrappedStack.getStackSize(), "x")); |
71 | 71 | } |
72 | 72 |
|
73 | 73 | @Override |
|
0 commit comments