Class NameTagResult
java.lang.Object
com.blamejared.crafttweaker.api.entity.NameTagResult
-
Constructor Summary
ConstructorsConstructorDescriptionNameTagResult(Boolean result, net.minecraft.network.chat.Component content, net.minecraft.network.chat.Component originalContent) -
Method Summary
Modifier and TypeMethodDescriptionvoidForces the name tag to be visible even when it would otherwise not be.net.minecraft.network.chat.ComponentGets the current content of the name tag.net.minecraft.network.chat.ComponentGets the original content of the name tag.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 name tag.voidSets the default vanilla behaviour of rendering name tags.
-
Constructor Details
-
NameTagResult
public NameTagResult(@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 name tag. This can be changed by mods.- Returns:
- The current name tag content.
-
setContent
public void setContent(net.minecraft.network.chat.Component content) Sets the new content of the name tag.- Parameters:
content- The new name tag contents.- DocParam:
- contents "Creator"
-
getOriginalContent
public net.minecraft.network.chat.Component getOriginalContent()Gets the original content of the name tag. This can not be changed by mods.- Returns:
- The original name tag content.
-
alwaysRender
public void alwaysRender()Forces the name tag 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 name tags. -
getResult
-