Java Code Examples for net.minecraft.text.TranslatableText#setStyle()

The following examples show how to use net.minecraft.text.TranslatableText#setStyle() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CircuitFabricatorBlockEntity.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
CircuitFabricatorStatus(TranslatableText text, Formatting color) {
    this.text = text.setStyle(Style.EMPTY.withColor(color));
}
 
Example 2
Source File: CoalGeneratorBlockEntity.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
CoalGeneratorStatus(TranslatableText text, Formatting color) {
    this.text = text.setStyle(Style.EMPTY.withColor(color));
}
 
Example 3
Source File: OxygenCollectorBlockEntity.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
OxygenCollectorStatus(TranslatableText text, Formatting color) {
    this.text = text.setStyle(Style.EMPTY.withColor(color));
}
 
Example 4
Source File: ElectricCompressorBlockEntity.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
ElectricCompressorStatus(TranslatableText text, Formatting color) {
    this.text = text.setStyle(Style.EMPTY.withColor(color));
}
 
Example 5
Source File: CompressorBlockEntity.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
CompressorStatus(TranslatableText text, Formatting color) {
    this.text = text.setStyle(Style.EMPTY.withColor(color));
}
 
Example 6
Source File: BasicSolarPanelBlockEntity.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
BasicSolarPanelStatus(TranslatableText text, Formatting color) {
    this.text = text.setStyle(Style.EMPTY.withColor(color));
}
 
Example 7
Source File: RefineryBlockEntity.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
RefineryStatus(TranslatableText text, Formatting color) {
    this.text = text.setStyle(Style.EMPTY.withColor(color));
}