NameTagResult
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.entity.NameTagResult;
Members
alwaysRender()
Forces the name tag to be visible even when it would otherwise not be.script.zs
// NameTagResult.alwaysRender();myNameTagResult.alwaysRender();
Getter
Setter
content() as Component
content(content as Component)
noRender()
Forces the display name to not render even when it should.script.zs
// NameTagResult.noRender();myNameTagResult.noRender();
Getter
originalContent() as Component
setDefault()
Sets the default vanilla behaviour of rendering name tags.script.zs
// NameTagResult.setDefault();myNameTagResult.setDefault();