Package org.bukkit

Interface Translatable

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

@Deprecated(forRemoval=true) public interface Translatable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents an object with a text representation that can be translated by the Minecraft client.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    look for a translationKey() method instead
  • Method Details

    • getTranslationKey

      @NotNull @Deprecated(forRemoval=true) @NotNull String getTranslationKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      look for a translationKey() method instead
      Get the translation key, suitable for use in a translation component.
      Returns:
      the translation key