Interface ITranslatable
- All Known Subinterfaces:
IAbility,IAffinity,IOcculusTab,ISkill,ISkillPoint,ITranslatable.OfRegistryEntry<T>,ITranslatable.OfRegistryEntry.WithDescription<T>,ITranslatable.WithDescription
- All Known Implementing Classes:
EtheriumType
public interface ITranslatable
Utility interface for providing easy localization.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceITranslatable.OfRegistryEntry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>ITranslatable that handles the id using a registry entry.static interfaceITranslatable that also has a description. -
Method Summary
-
Method Details
-
getId
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.
-
getDisplayName
default net.minecraft.network.chat.Component getDisplayName()- Returns:
- A component containing the display name of this object.
-