All Known Subinterfaces:
ITranslatable.WithDescription
All Known Implementing Classes:
Ability, Affinity, EtheriumType, OcculusTab, Skill, SkillPoint

public interface ITranslatable
Utility interface for providing easy localization.
API Note:
At least one of the getId() methods must be implemented.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    ITranslatable that also has a description.
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.network.chat.Component
     
    default net.minecraft.network.chat.Component
    getDisplayName(net.minecraft.core.RegistryAccess access)
     
    default net.minecraft.resources.ResourceLocation
     
    default net.minecraft.resources.ResourceLocation
    getId(net.minecraft.core.RegistryAccess access)
     
    default String
     
    default String
    getTranslationKey(net.minecraft.core.RegistryAccess access)
     
     
  • Method Details

    • getId

      default net.minecraft.resources.ResourceLocation getId(net.minecraft.core.RegistryAccess access)
      Returns:
      The id of this object.
    • getId

      default net.minecraft.resources.ResourceLocation getId()
      Returns:
      The id of this object.
    • getType

      String getType()
      Returns:
      The type of this object, for example "block" or "item".
    • getTranslationKey

      default String getTranslationKey(net.minecraft.core.RegistryAccess access)
      Returns:
      The translation key for this object.
    • getTranslationKey

      default String getTranslationKey()
      Returns:
      The translation key for this object.
    • getDisplayName

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

      default net.minecraft.network.chat.Component getDisplayName()
      Returns:
      A component containing the display name of this object.