Class LangBuilder
java.lang.Object
com.simibubi.create.foundation.utility.LangBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(LangBuilder otherBuilder) Appends the contents of another builderadd(net.minecraft.network.chat.MutableComponent customComponent) Appends a componentvoidcolor(int color) Applies the color to all added componentsnet.minecraft.network.chat.MutableComponentvoidforGoggles(List<? super net.minecraft.network.chat.MutableComponent> tooltip) voidforGoggles(List<? super net.minecraft.network.chat.MutableComponent> tooltip, int indents) json()newLine()voidsendChat(net.minecraft.world.entity.player.Player player) voidsendStatus(net.minecraft.world.entity.player.Player player) space()string()style(net.minecraft.ChatFormatting format) Applies the format to all added componentsAppends a colored text componentAppends a text componentAppends a colored text componentAppends a localised component
To add an independently formatted localised component, use add() and a nested builder
-
Constructor Details
-
LangBuilder
-
-
Method Details
-
space
-
newLine
-
translate
Appends a localised component
To add an independently formatted localised component, use add() and a nested builder- Parameters:
langKey-args-- Returns:
-
text
Appends a text component- Parameters:
literalText-- Returns:
-
text
Appends a colored text component- Parameters:
format-literalText-- Returns:
-
text
Appends a colored text component- Parameters:
color-literalText-- Returns:
-
add
Appends the contents of another builder- Parameters:
otherBuilder-- Returns:
-
add
Appends a component- Parameters:
customComponent-- Returns:
-
style
Applies the format to all added components- Parameters:
format-- Returns:
-
color
Applies the color to all added components- Parameters:
color-- Returns:
-
component
public net.minecraft.network.chat.MutableComponent component() -
string
-
json
-
sendStatus
public void sendStatus(net.minecraft.world.entity.player.Player player) -
sendChat
public void sendChat(net.minecraft.world.entity.player.Player player) -
addTo
-
forGoggles
-
forGoggles
public void forGoggles(List<? super net.minecraft.network.chat.MutableComponent> tooltip, int indents)
-