Interface ITranslatable.WithDescription

All Superinterfaces:
ITranslatable
All Known Implementing Classes:
Ability, Skill
Enclosing interface:
ITranslatable

public static interface ITranslatable.WithDescription extends ITranslatable
ITranslatable that also has a description.
  • Method Details

    • getDisplayName

      default net.minecraft.network.chat.Component getDisplayName(net.minecraft.core.RegistryAccess access)
      Specified by:
      getDisplayName in interface ITranslatable
      Returns:
      A component containing the display name of this object.
    • getDisplayName

      default net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface ITranslatable
      Returns:
      A component containing the display name of this object.
    • getDescription

      default net.minecraft.network.chat.Component getDescription(net.minecraft.core.RegistryAccess access)
      Returns:
      A component containing the description of this object
    • getDescription

      default net.minecraft.network.chat.Component getDescription()
      Returns:
      A component containing the description of this object
    • getNameTranslationKey

      default String getNameTranslationKey(net.minecraft.core.RegistryAccess access)
      Returns:
      The translation key for the name
    • getNameTranslationKey

      default String getNameTranslationKey()
      Returns:
      The translation key for the name
    • getDescriptionTranslationKey

      default String getDescriptionTranslationKey(net.minecraft.core.RegistryAccess access)
      Returns:
      The translation key for the description
    • getDescriptionTranslationKey

      default String getDescriptionTranslationKey()
      Returns:
      The translation key for the description