Package org.bukkit

Interface Keyed

All Superinterfaces:
Keyed
All Known Subinterfaces:
Advancement, BlockType, BlockType.Typed<B>, Cat.Type, ComplexRecipe, DamageType, DataPack, FeatureFlag, 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, Attribute, AttributeModifier, BaseTag, Biome, BlastingRecipe, CampfireRecipe, CookingRecipe, CraftingRecipe, Enchantment, EnchantmentWrapper, EntitySetTag, EntityType, Fluid, FurnaceRecipe, GameEvent, LootTables, Material, MaterialSetTag, MemoryKey, MusicInstrument, Particle, PotionEffectType, PotionEffectTypeWrapper, PotionMix, PotionType, ShapedRecipe, ShapelessRecipe, SmithingRecipe, SmithingTransformRecipe, SmithingTrimRecipe, SmokingRecipe, Sound, Statistic, StonecuttingRecipe, Structure, StructureType, StructureType

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