MCStyle

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.

crafttweaker.api.util.text.MCStyle

Constructors

new crafttweaker.api.util.text.MCStyle();

Methods

equals

Return type: boolean

myMCStyle.equals(other as Object);
ParameterTypeDescription
otherObjectNo description provided

getBold

Return type: boolean

myMCStyle.getBold();

getFontId

Type de retour : crafttweaker.api.util.MCResourceLocation

myMCStyle.getFontId();

Obtenir l'insertion

Return type: String

myMCStyle.getInsertion();

getItalic

Return type: boolean

myMCStyle.getItalic();

format@@0 getObfuscated

Return type: boolean

myMCStyle.getObfuscated();

format@@0 getStrikethrough

Return type: boolean

myMCStyle.getStrikethrough();

devenez souligné

Return type: boolean

myMCStyle.getUnderlined();

hashCode

Return type: int

myMCStyle.hashCode();

isEmpty

Si ce style est vide ou non (hérite de tout le parent).

Return type: boolean

myMCStyle.isEmpty();

FugeStyle

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.mergeStyle(style comme crafttweaker.api.util.text.MCStyle);
ParameterTypeDescription
stylecrafttweaker.api.util.text.MCStyleNo description provided

setBold

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setBold(boldIn comme booléen);
ParameterTypeDescription
boldInBooleanNo description provided

définir la couleur

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setColor(formatage comme crafttweaker.api.text.TextFormatting);
ParameterTypeDescription
mise en formecrafttweaker.api.text.TextFormattingNo description provided

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setColor(color as int);
ParameterTypeDescription
couleurintNo description provided

setFontId

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setFontId(emplacement comme emplacement crafttweaker.api.util.MCResourceLocation);
ParameterTypeDescription
Localisationcrafttweaker.api.util.MCResourceLocationNo description provided

format@@0 setFormatting

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setFormatting(mise en forme comme crafttweaker.api.text.TextFormatting);
ParameterTypeDescription
mise en formecrafttweaker.api.text.TextFormattingNo description provided

setInsertion

Définir un texte à insérer dans le chat lorsque le composant est cliqué avec la touche Maj

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setInsertion(insertion en tant que String);
ParameterTypeDescription
insertionStringNo description provided

setItalic

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setItalic(italique comme booléen);
ParameterTypeDescription
italicBooleanNo description provided

format@@0 setObfuscated

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setObfuscated(obfusqué comme Boolean);
ParameterTypeDescription
obfuscatedBooleanNo description provided

setStrikethrough

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setStrikethrough(strikethrough as Boolean);
ParameterTypeDescription
strikethroughBooleanNo description provided

soulignée

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setUnderlined(souligné comme booléen);
ParameterTypeDescription
soulignéBooleanNo description provided

Type de retour : crafttweaker.api.util.text.MCStyle

myMCStyle.setUnderlined(souligné comme booléen);
ParameterTypeDescription
soulignébooleanNo description provided

toString

Return type: String

myMCStyle.toString();