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;
Forces the name tag to be visible even when it would otherwise not be. // NameTagResult.alwaysRender();
myNameTagResult . alwaysRender();
Gets the current content of the name tag. This can be changed by mods. // NameTagResult.content as Component
Return Type:
Component
Sets the new content of the name tag. // NameTagResult.content = (content as Component);
myNameTagResult . content = myComponent;
Gets the current content of the name tag. This can be changed by mods. Returns : The current name tag content.
// NameTagResult.content() as Component;
myNameTagResult . content();
Return Type:
Component
Sets the new content of the name tag. // NameTagResult.content(content as Component);
myNameTagResult . content(myComponent);
Forces the display name to not render even when it should. // NameTagResult.noRender();
myNameTagResult . noRender();
Gets the original content of the name tag. This can not be changed by mods. // NameTagResult.originalContent as Component
myNameTagResult . originalContent
Return Type:
Component
Gets the original content of the name tag. This can not be changed by mods. Returns : The original name tag content.
// NameTagResult.originalContent() as Component;
myNameTagResult . originalContent();
Return Type:
Component
Sets the default vanilla behaviour of rendering name tags. // NameTagResult.setDefault();
myNameTagResult . setDefault();