Class NameTagResult

java.lang.Object
com.blamejared.crafttweaker.api.entity.NameTagResult

@ZenRegister public class NameTagResult extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    NameTagResult(Boolean result, net.minecraft.network.chat.Component content, net.minecraft.network.chat.Component originalContent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Forces the name tag to be visible even when it would otherwise not be.
    net.minecraft.network.chat.Component
    Gets the current content of the name tag.
    net.minecraft.network.chat.Component
    Gets the original content of the name tag.
     
    void
    Forces the display name to not render even when it should.
    void
    setContent(net.minecraft.network.chat.Component content)
    Sets the new content of the name tag.
    void
    Sets the default vanilla behaviour of rendering name tags.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @Nullable public Boolean getResult()