Begin adding DynamicChest UI, and finish adding the HeadUtilities

This commit is contained in:
Aria 2023-03-01 02:19:47 -07:00
parent 5c70fb1291
commit 8fde794b65
23 changed files with 662 additions and 7 deletions

View file

@ -5,6 +5,7 @@ import java.util.UUID;
import dev.zontreck.libzontreck.LibZontreck;
import dev.zontreck.libzontreck.chat.ChatColor;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.player.Player;
@ -74,6 +75,16 @@ public class ChatHelpers {
broadcastTo(ID.getUUID(), message, server, true);
}
/**
* Returns the output with colors applied, and chat entries replaced using [number] as the format
* @param input
* @param inputs Entries to replace with in input
* @return
*/
public static TextComponent macro(String input, String... inputs)
{
return new TextComponent(macroize(input,inputs));
}
/**
* Returns the output with colors applied, and chat entries replaced using [number] as the format
* @param input