Package org.bukkit

Interface Keyed

All Superinterfaces:
Keyed
All Known Subinterfaces:
Advancement, Attribute, Biome, BlockType, BlockType.Typed<B>, Cat.Type, ComplexRecipe, DamageType, DataPack, FeatureFlag, Fluid, Frog.Variant, ItemType, ItemType.Typed<M>, JukeboxSong, KeyedBossBar, LimitedRegion, LootTable, MapCursor.Type, MenuType, MenuType.Typed<V>, PatternType, Reference<T>, RegionAccessor, Tag<T>, TrimMaterial, TrimPattern, Villager.Profession, Villager.Type, Wolf.Variant, World
All Known Implementing Classes:
Art, AttributeModifier, BaseTag, BlastingRecipe, CampfireRecipe, CookingRecipe, CraftingRecipe, Enchantment, EnchantmentWrapper, EntitySetTag, EntityType, FurnaceRecipe, GameEvent, LootTables, Material, MaterialSetTag, MemoryKey, MusicInstrument, Particle, PotionEffectType, PotionEffectTypeWrapper, PotionMix, PotionType, ShapedRecipe, ShapelessRecipe, SmithingRecipe, SmithingTransformRecipe, SmithingTrimRecipe, SmokingRecipe, Sound, Statistic, StonecuttingRecipe, Structure, StructureType, StructureType, TransmuteRecipe

public interface Keyed extends Keyed
Represents an object which has a NamespacedKey attached to it.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the namespaced identifier for this object.
    default @NotNull Key
    key()
    Returns the unique identifier for this object.
  • Method Details

    • getKey

      Return the namespaced identifier for this object.
      Returns:
      this object's key
    • key

      default @NotNull Key key()
      Returns the unique identifier for this object.
      Specified by:
      key in interface Keyed
      Returns:
      this object's key