Color
Link to color
If you are uncertain on how to create the colour int object, you can use the Color Object instead.
Importing the package
Link to importing-the-package
It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.Color;
Static Methods
Link to static-methods
Static Methods are called on the package name and not on the Object itself.
All these Methods return a Color Object.
ZenMethod | Parameter Type |
---|---|
ZenMethod fromInt(color) | Parameter Type int |
ZenMethod fromHex(color) | Parameter Type string |
Nonstatic Methods
Link to nonstatic-methods
Nonstatic Methods are not called on the package name but on the Object itself.
ZenMethod | Return Type |
---|---|
ZenMethod getIntColor() | Return Type int |