Class NamePlateResult
java.lang.Object
com.blamejared.crafttweaker.api.entity.NamePlateResult
-
Constructor Summary
ConstructorsConstructorDescriptionNamePlateResult(Boolean result, net.minecraft.network.chat.Component content, net.minecraft.network.chat.Component originalContent) -
Method Summary
Modifier and TypeMethodDescriptionvoidForces the nameplate to be visible even when it would otherwise not be.net.minecraft.network.chat.ComponentGets the current content of the nameplate.net.minecraft.network.chat.ComponentGets the original content of the nameplate.voidnoRender()Forces the display name to not render even when it should.voidsetContent(net.minecraft.network.chat.Component content) Sets the new content of the nameplate.voidSets the default vanilla behaviour of rendering nameplates.
-
Constructor Details
-
NamePlateResult
public NamePlateResult(@Nullable Boolean result, net.minecraft.network.chat.Component content, net.minecraft.network.chat.Component originalContent)
-
-
Method Details
-
getContent
public net.minecraft.network.chat.Component getContent()Gets the current content of the nameplate. This can be changed by mods.- Returns:
- The current nameplate content.
-
setContent
public void setContent(net.minecraft.network.chat.Component content) Sets the new content of the nameplate.- Parameters:
content- The new nameplate contents.- DocParam:
- contents "Creator"
-
getOriginalContent
public net.minecraft.network.chat.Component getOriginalContent()Gets the original content of the nameplate. This can not be changed by mods.- Returns:
- The original nameplate content.
-
alwaysRender
public void alwaysRender()Forces the nameplate to be visible even when it would otherwise not be. -
noRender
public void noRender()Forces the display name to not render even when it should. -
setDefault
public void setDefault()Sets the default vanilla behaviour of rendering nameplates. -
getResult
-