Package org.bukkit
Interface Keyed
- All Superinterfaces:
net.kyori.adventure.key.Keyed
- All Known Subinterfaces:
Advancement
,Art
,Attribute
,Biome
,BlockType
,BlockType.Typed<B>
,Cat.Type
,Chicken.Variant
,ComplexRecipe
,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.Variant
,Reference<T>
,RegionAccessor
,Sound
,Tag<T>
,TrimMaterial
,TrimPattern
,Villager.Profession
,Villager.Type
,Wolf.SoundVariant
,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 net.kyori.adventure.key.Keyed
Represents an object which has a
NamespacedKey
attached to it.-
Method Summary
Modifier and TypeMethodDescription@NotNull NamespacedKey
getKey()
Return the namespaced identifier for this object.default @NotNull net.kyori.adventure.key.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 net.kyori.adventure.key.Key key()Returns the unique identifier for this object.- Specified by:
key
in interfacenet.kyori.adventure.key.Keyed
- Returns:
- this object's key
-