Package org.bukkit

Interface Translatable

All Known Subinterfaces:
Attribute, Block, BlockType, BlockType.Typed<B>, DamageType, ItemType, ItemType.Typed<M>, JukeboxSong, TrimMaterial, TrimPattern
All Known Implementing Classes:
Enchantment, EnchantmentWrapper, EntityType, ItemStack, Material, PotionEffectType, PotionEffectTypeWrapper

public interface Translatable
Represents an object with a text representation that can be translated by the Minecraft client.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the translation key, suitable for use in a translation component.
  • Method Details

    • getTranslationKey

      @NotNull String getTranslationKey()
      Get the translation key, suitable for use in a translation component.
      Returns:
      the translation key