20 lines
614 B
Java
20 lines
614 B
Java
package com.atsuishio.superbwarfare.client;
|
|
|
|
import net.minecraft.ChatFormatting;
|
|
import net.minecraft.client.gui.screens.Screen;
|
|
import net.minecraft.network.chat.Component;
|
|
|
|
import java.util.List;
|
|
|
|
public class TooltipTool {
|
|
|
|
public static void addHideText(List<Component> tooltip, Component text) {
|
|
if (Screen.hasShiftDown()) {
|
|
tooltip.add(text);
|
|
}
|
|
}
|
|
|
|
public static void addDevelopingText(List<Component> tooltip) {
|
|
tooltip.add(Component.translatable("des.superbwarfare.developing").withStyle(ChatFormatting.LIGHT_PURPLE).withStyle(ChatFormatting.BOLD));
|
|
}
|
|
}
|