3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-07 20:10:06 +01:00

wrap to TextComponent

Dieser Commit ist enthalten in:
Matthew Miller 2019-04-25 19:20:29 +10:00
Ursprung 5606e752c2
Commit b1e43b7561
4 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen

Datei anzeigen

@ -19,7 +19,7 @@
package com.sk89q.worldedit.util.formatting.component;
import com.sk89q.worldedit.util.formatting.text.Component;
import com.sk89q.worldedit.util.formatting.text.TextComponent;
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
/**
@ -37,7 +37,7 @@ public class CodeFormat extends TextComponentProducer {
* @param texts The text
* @return The Component
*/
public static Component wrap(String ... texts) {
public static TextComponent wrap(String ... texts) {
CodeFormat code = new CodeFormat();
for (String text: texts) {
code.append(text);

Datei anzeigen

@ -19,7 +19,7 @@
package com.sk89q.worldedit.util.formatting.component;
import com.sk89q.worldedit.util.formatting.text.Component;
import com.sk89q.worldedit.util.formatting.text.TextComponent;
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
/**
@ -40,7 +40,7 @@ public class ErrorFormat extends TextComponentProducer {
* @param texts The text
* @return The Component
*/
public static Component wrap(String ... texts) {
public static TextComponent wrap(String ... texts) {
ErrorFormat error = new ErrorFormat();
for (String component : texts) {
error.append(component);

Datei anzeigen

@ -19,7 +19,7 @@
package com.sk89q.worldedit.util.formatting.component;
import com.sk89q.worldedit.util.formatting.text.Component;
import com.sk89q.worldedit.util.formatting.text.TextComponent;
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
/**
@ -40,7 +40,7 @@ public class LabelFormat extends TextComponentProducer {
* @param texts The text
* @return The Component
*/
public static Component wrap(String ... texts) {
public static TextComponent wrap(String ... texts) {
LabelFormat label = new LabelFormat();
for (String component : texts) {
label.append(component);

Datei anzeigen

@ -19,7 +19,7 @@
package com.sk89q.worldedit.util.formatting.component;
import com.sk89q.worldedit.util.formatting.text.Component;
import com.sk89q.worldedit.util.formatting.text.TextComponent;
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
/**
@ -40,7 +40,7 @@ public class SubtleFormat extends TextComponentProducer {
* @param texts The text
* @return The Component
*/
public static Component wrap(String ... texts) {
public static TextComponent wrap(String ... texts) {
SubtleFormat subtle = new SubtleFormat();
for (String component : texts) {
subtle.append(component);