Package org.bukkit

Interface Keyed

All Superinterfaces:
Keyed
All Known Subinterfaces:
Advancement, Art, Attribute, Biome, BlockType, BlockType.Typed<B>, Cat.Type, ComplexRecipe, DamageType, DataComponentType, DataComponentType.NonValued, DataComponentType.Valued<T>, DataPack, FeatureFlag, Fluid, Frog.Variant, ItemType, ItemType.Typed<M>, JukeboxSong, KeyedBossBar, LimitedRegion, LootTable, MapCursor.Type, MenuType, MenuType.Typed<V>, PatternType, Reference<T>, RegionAccessor, Sound, Tag<T>, TrimMaterial, TrimPattern, Villager.Profession, Villager.Type, Wolf.Variant, World
All Known Implementing Classes:
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, 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