Interface Keyed
- All Superinterfaces:
net.kyori.adventure.key.Keyed
- All Known Subinterfaces:
Advancement, Art, Attribute, Biome, BlockType, BlockType.Typed<B>, Cat.SoundVariant, Cat.Type, Chicken.SoundVariant, Chicken.Variant, ComplexRecipe, Cow.SoundVariant, Cow.Variant, DamageType, DataComponentType, DataComponentType.NonValued, DataComponentType.Valued<T>, Dialog, FeatureFlag, Fluid, Frog.Variant, ItemType, ItemType.Typed<M>, JukeboxSong, KeyedBossBar, LimitedRegion, LootTable, MapCursor.Type, MenuType, MenuType.Typed<V,B>, PatternType, Pig.SoundVariant, Pig.Variant, PoiType, PotPatternType, Reference<T>, RegionAccessor, Sound, SulfurCube.Archetype, Tag<T>, TrimMaterial, TrimPattern, Villager.Profession, Villager.Type, Wolf.SoundVariant, Wolf.Variant, World, WorldInfo, ZombieNautilus.Variant
- All Known Implementing Classes:
AttributeModifier, BaseTag, BlastingRecipe, BrewingRecipe, CampfireRecipe, CookingRecipe, CraftingRecipe, Enchantment, EnchantmentWrapper, EntitySetTag, EntityType, FurnaceRecipe, GameEvent, GameRule, 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 net.kyori.adventure.key.Keyed
Represents an object which has a
NamespacedKey attached to it.- Since:
- 1.12
-
Method Summary
Modifier and TypeMethodDescription@NotNull NamespacedKeygetKey()Return the namespaced identifier for this object.default @NotNull net.kyori.adventure.key.Keykey()Returns the unique identifier for this object.
-
Method Details
-
getKey
Return the namespaced identifier for this object.- Returns:
- this object's key
- Since:
- 1.12
-
key
default @NotNull net.kyori.adventure.key.Key key()Returns the unique identifier for this object.- Specified by:
keyin interfacenet.kyori.adventure.key.Keyed- Returns:
- this object's key
- Since:
- 1.18.1
-