Class NamePlateResult

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

@ZenRegister public class NamePlateResult extends Object
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    Forces the nameplate to be visible even when it would otherwise not be.
    net.minecraft.network.chat.Component
    Gets the current content of the nameplate.
    net.minecraft.network.chat.Component
    Gets the original content of the nameplate.
     
    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 nameplate.
    void
    Sets the default vanilla behaviour of rendering nameplates.

    Methods inherited from class java.lang.Object

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

      @Nullable public Boolean getResult()