NamePlateResult
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 at the very top of the file.
Methods
Forces the nameplate to be visible even when it would otherwise not be.
Gets the current content of the nameplate. This can be changed by mods.
Returns: The current nameplate content.
Return Type: Component
Gets the original content of the nameplate. This can not be changed by mods.
Returns: The original nameplate content.
Return Type: Component
Forces the display name to not render even when it should.
Sets the new content of the nameplate.
Parameter | Type | Description |
---|---|---|
Parameter content | Type Component | Description The new nameplate contents. |
Sets the default vanilla behaviour of rendering nameplates.
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name content | Type Component | Has Getter true | Has Setter true | Description Gets the current content of the nameplate. This can be changed by mods. |
Name originalContent | Type Component | Has Getter true | Has Setter false | Description Gets the original content of the nameplate. This can not be changed by mods. |