Interface ITranslatable
- 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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceITranslatable that also has a description. -
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.network.chat.Componentdefault net.minecraft.network.chat.ComponentgetDisplayName(net.minecraft.core.RegistryAccess access) default net.minecraft.resources.ResourceLocationgetId()default net.minecraft.resources.ResourceLocationgetId(net.minecraft.core.RegistryAccess access) default Stringdefault StringgetTranslationKey(net.minecraft.core.RegistryAccess access) getType()
-
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
- Returns:
- The translation key for this object.
-
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.
-