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.
import crafttweaker.text.IStyle;

ZenGetters and ZenSetters

Link to zengetters-and-zensetters

ZenGetterZenSetter类型
ZenGetter
parent
ZenSetter
parent
类型
IStyle
ZenGetter
bold
ZenSetter
bold
类型
bool
ZenGetter
italic
ZenSetter
italic
类型
bool
ZenGetter
underline
ZenSetter
underline
类型
bool
ZenGetter
strikethrough
ZenSetter
strikethrough
类型
bool
ZenGetter
obfuscated
ZenSetter
obfuscated
类型
bool
ZenGetter
插入
ZenSetter
插入
类型
bool
ZenGetter
color
ZenSetter
color
类型
string
  • IStyle createShallowCopy();

Creates a shallow copy of this style. Changes to this instance's values will not be reflected in the copy, but changes to the parent style's values WILL be reflected in both this instance and the copy, wherever either does not override a value.

  • IStyle createDeepCopy();

Creates a deep copy of this style. No changes to this instance or its parent style will be reflected in the copy.