Package net.minecraft.util.text
Class TextComponentUtils
java.lang.Object
net.minecraft.util.text.TextComponentUtils
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
ITextComponentformatAndSortList(Collection<T> p_197675_0_, Function<T, ITextComponent> p_197675_1_) static ITextComponentformatList(Collection<String> p_197678_0_) static <T> IFormattableTextComponentformatList(Collection<T> p_240649_0_, Function<T, ITextComponent> p_240649_1_) static ITextComponentfromMessage(com.mojang.brigadier.Message p_202465_0_) static ITextComponentgetDisplayName(com.mojang.authlib.GameProfile p_197679_0_) static IFormattableTextComponentmergeStyles(IFormattableTextComponent p_240648_0_, Style p_240648_1_) private static StyleresolveStyle(CommandSource p_240646_0_, Style p_240646_1_, Entity p_240646_2_, int p_240646_3_) static IFormattableTextComponentupdateForEntity(CommandSource p_240645_0_, ITextComponent p_240645_1_, Entity p_240645_2_, int p_240645_3_) static IFormattableTextComponentwrapInSquareBrackets(ITextComponent p_240647_0_)  
- 
Constructor Details
- 
TextComponentUtils
public TextComponentUtils() 
 - 
 - 
Method Details
- 
mergeStyles
public static IFormattableTextComponent mergeStyles(IFormattableTextComponent p_240648_0_, Style p_240648_1_)  - 
updateForEntity
public static IFormattableTextComponent updateForEntity(@Nullable CommandSource p_240645_0_, ITextComponent p_240645_1_, @Nullable Entity p_240645_2_, int p_240645_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
resolveStyle
private static Style resolveStyle(@Nullable CommandSource p_240646_0_, Style p_240646_1_, @Nullable Entity p_240646_2_, int p_240646_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getDisplayName
 - 
formatList
 - 
formatAndSortList
public static <T extends Comparable<T>> ITextComponent formatAndSortList(Collection<T> p_197675_0_, Function<T, ITextComponent> p_197675_1_)  - 
formatList
public static <T> IFormattableTextComponent formatList(Collection<T> p_240649_0_, Function<T, ITextComponent> p_240649_1_)  - 
wrapInSquareBrackets
 - 
fromMessage
 
 -