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

戻り値の型: crafttweaker.api.util.MCResourceLocation

myMCStyle.getFontId();

getInsertion

Return type: String

myMCStyle.getInsertion();

getItalic

Return type: boolean

myMCStyle.getItalic();

getObfuscated

Return type: boolean

myMCStyle.get難読化();

getStrikethrough

Return type: boolean

myMCStyle.getStrikethrough ();

getUnderlined

Return type: boolean

myMCStyle.getUnderlined();

hashCode

Return type: int

myMCStyle.hashCode();

isEmpty

このスタイルが空であるかどうか(親からすべてを継承します)。

Return type: boolean

myMCStyle.isEmpty();

mergeStyle

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.mergeStyle(crafttweaker.api.util.text.MCStyle);
ParameterTypeDescription
スタイルcrafttweaker.api.util.text.MCStyleNo description provided

setBold

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setBold(boldIn as Boolean);
ParameterTypeDescription
boldInBooleanNo description provided

setColor

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setColor(crafttweaker.api.text.TextFormating);
ParameterTypeDescription
書式設定crafttweaker.api.text.TextFormattingNo description provided

戻り値の型: crafttweaker.api.util.text.MCStyle

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

setFontId

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setFontId(location as crafttweaker.api.util.MCResourceLocation);
ParameterTypeDescription
場所crafttweaker.api.util.MCResourceLocationNo description provided

設定フォーマット

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setFormatting(crafttweaker.api.text.TextFormating);
ParameterTypeDescription
書式設定crafttweaker.api.text.TextFormattingNo description provided

setInsertion

コンポーネントがシフトクリックされたときにチャットに挿入するテキストを設定します

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setInsertion(insertion as String);
ParameterTypeDescription
挿入StringNo description provided

setItalic

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setItalic(italic as Boolean);
ParameterTypeDescription
italicBooleanNo description provided

setObfuscated

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setObfuscated(obfuscated as Boolean);
ParameterTypeDescription
obfuscatedBooleanNo description provided

setStrikethrough

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setStrikethrough(Booleanとしての取り消し);
ParameterTypeDescription
strikethroughBooleanNo description provided

setUnderlined

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setUnderlined(Booleanとして下線を引く);
ParameterTypeDescription
下線付きBooleanNo description provided

戻り値の型: crafttweaker.api.util.text.MCStyle

myMCStyle.setUnderlined(underlined)
ParameterTypeDescription
下線付きboolean型No description provided

toString

Return type: String

myMCStyle.toString();