类的使用
org.bukkit.NamespacedKey
使用NamespacedKey的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
与属性有关的类 (Minecraft Wiki - 属性).
用于操作在
世界内的三位像素(方块),包括一些特定的状态.与旗帜方块有关的类.
Classes concerning damage types and sources applicable to living entities.
为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.与实体的持久化内存有关的类, 目前仅与村民有关.
Classes to facilitate world
Structure
generation.参与操作玩家物品栏和物品交互的类.
用于操作可以存储在
物品堆的额外数据的接口.Isolated components which may form part of item meta.
通过本包的API可允许向物品附加自定义数据.
盔甲纹饰元数据类型。
与战利品表产生与操作有关的类 (Minecraft Wiki - 战利品表).
用于简化处理
地图显示内容的类.Classes dedicated to handling data pack information.
用于向各种对象附加持久化数据的类.
代表每种
药水属性和操作的类的集合.Class related to
RegistryClasses related to creating or using
structures without creating Structure
blocks in the world.-
org.bukkit中NamespacedKey的使用
返回NamespacedKey的org.bukkit中的方法修饰符和类型方法说明static @Nullable NamespacedKeyNamespacedKey.fromString(@NotNull String key) 根据提供的字符串获取 NamespacedKey 对象.static @Nullable NamespacedKeyNamespacedKey.fromString(@NotNull String string, @Nullable Plugin defaultNamespace) 根据提供的字符串获取 NamespacedKey 对象, 若字符串未指定命名空间名, 将使用参数给定的默认命名空间.Art.getKey()已过时。Fluid.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.abstract @NotNull NamespacedKeyGameEvent.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.JukeboxSong.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Keyed.getKey()返回用于此对象的命名空间标识符.Material.getKey()已过时。A key might not always be present, useMaterial.getKeyOrThrow()instead.abstract @NotNull NamespacedKeyMusicInstrument.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Particle.getKey()已过时。A key might not always be present, useParticle.getKeyOrThrow()instead.Sound.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Statistic.getKey()StructureType.getKey()已过时。Material.getKeyOrNull()Particle.getKeyOrNull()Material.getKeyOrThrow()Particle.getKeyOrThrow()static @NotNull NamespacedKey获取 Minecraft 命名空间内的一个 key.static @NotNull NamespacedKeyNamespacedKey.randomKey()已过时。插件应永不使用此方法, 仅供内部使用!!参数类型为NamespacedKey的org.bukkit中的方法修饰符和类型方法说明static @NotNull KeyedBossBarBukkit.createBossBar(@NotNull NamespacedKey key, @Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags) 创建一个Boss血量条实例.Server.createBossBar(@NotNull NamespacedKey key, @Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags) 创建一个Boss血量条实例.Registry.get(@NotNull NamespacedKey key) Get the object by its key.Registry.SimpleRegistry.get(@NotNull NamespacedKey key) <B extends Keyed>
BUnsafeValues.get(Registry<B> registry, NamespacedKey key) 已过时。static @Nullable AdvancementBukkit.getAdvancement(@NotNull NamespacedKey key) 通过Key获得特定的进度对象.Server.getAdvancement(@NotNull NamespacedKey key) 通过Key获得特定的进度对象.static @Nullable KeyedBossBarBukkit.getBossBar(@NotNull NamespacedKey key) Gets theKeyedBossBarspecified by this key.Server.getBossBar(@NotNull NamespacedKey key) Gets theKeyedBossBarspecified by this key.GameEvent.getByKey(@NotNull NamespacedKey namespacedKey) 已过时。static @Nullable MusicInstrumentMusicInstrument.getByKey(@NotNull NamespacedKey namespacedKey) 已过时。UseRegistry.get(NamespacedKey)instead.UnsafeValues.getFeatureFlag(@NotNull NamespacedKey key) 已过时。UnsafeValues.getInternalPotionData(NamespacedKey key) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Bukkit.getLootTable(@NotNull NamespacedKey key) 获取指定的战利品表.Server.getLootTable(@NotNull NamespacedKey key) 获取指定的战利品表.Registry.getOrThrow(@NotNull NamespacedKey key) Get the object by its key.Registry.SimpleRegistry.getOrThrow(@NotNull NamespacedKey key) Bukkit.getRecipe(@NotNull NamespacedKey recipeKey) 根据指定的 key 获取配方.Server.getRecipe(@NotNull NamespacedKey recipeKey) 根据指定的 key 获取配方.Gets a tag which has already been defined within the server.Gets a tag which has already been defined within the server.UnsafeValues.loadAdvancement(NamespacedKey key, String advancement) 已过时。Load an advancement represented by the specified string into the server.booleanUnsafeValues.removeAdvancement(NamespacedKey key) 已过时。Delete an advancement which was loaded and saved byUnsafeValues.loadAdvancement(org.bukkit.NamespacedKey, java.lang.String).static booleanBukkit.removeBossBar(@NotNull NamespacedKey key) Removes aKeyedBossBarspecified by this key.booleanServer.removeBossBar(@NotNull NamespacedKey key) Removes aKeyedBossBarspecified by this key.static booleanBukkit.removeRecipe(@NotNull NamespacedKey key) 从服务器移除指定的合成配方.booleanServer.removeRecipe(@NotNull NamespacedKey key) 从服务器移除指定的合成配方. -
org.bukkit.attribute中NamespacedKey的使用
修饰符和类型方法说明Attribute.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.AttributeModifier.getKey()参数类型为NamespacedKey的org.bukkit.attribute中的构造器限定符构造器说明AttributeModifier(@NotNull NamespacedKey key, double amount, @NotNull AttributeModifier.Operation operation, @NotNull EquipmentSlotGroup slot) -
org.bukkit.block中NamespacedKey的使用
修饰符和类型方法说明Biome.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.BlockType.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Skull.getNoteBlockSound()Gets the sound to play if the skull is placed on a note block.参数类型为NamespacedKey的org.bukkit.block中的方法修饰符和类型方法说明voidSkull.setNoteBlockSound(@Nullable NamespacedKey noteBlockSound) Sets the sound to play if the skull is placed on a note block. -
org.bukkit.block.banner中NamespacedKey的使用
修饰符和类型方法说明PatternType.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead. -
org.bukkit.damage中NamespacedKey的使用
修饰符和类型方法说明DamageType.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead. -
org.bukkit.enchantments中NamespacedKey的使用
修饰符和类型方法说明abstract @NotNull NamespacedKeyEnchantment.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.参数类型为NamespacedKey的org.bukkit.enchantments中的方法修饰符和类型方法说明static @Nullable EnchantmentEnchantment.getByKey(@Nullable NamespacedKey key) 已过时。仅为保障作向后兼容性, 请使用Registry.get(NamespacedKey)instead -
org.bukkit.entity中NamespacedKey的使用
修饰符和类型方法说明Cat.Type.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Chicken.Variant.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Cow.Variant.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.EntityType.getKey()已过时。A key might not always be present, useEntityType.getKeyOrThrow()instead.Frog.Variant.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Pig.Variant.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Villager.Profession.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Villager.Type.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Wolf.Variant.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.EntityType.getKeyOrNull()EntityType.getKeyOrThrow()LivingEntity.getWaypointStyle()Gets the waypoint style of this entity.返回变量类型为NamespacedKey的类型的org.bukkit.entity中的方法修饰符和类型方法说明HumanEntity.getDiscoveredRecipes()Get an immutable set of recipes this entity has discovered.参数类型为NamespacedKey的org.bukkit.entity中的方法修饰符和类型方法说明booleanHumanEntity.discoverRecipe(@NotNull NamespacedKey recipe) Discover a recipe for this player such that it has not already been discovered.booleanHumanEntity.hasDiscoveredRecipe(@NotNull NamespacedKey recipe) Check whether or not this entity has discovered the specified recipe.@NotNull CompletableFuture<byte[]>Player.retrieveCookie(@NotNull NamespacedKey key) Retrieves a cookie from this player.voidLivingEntity.setWaypointStyle(@Nullable NamespacedKey key) Sets the waypoint style of this entity.voidPlayer.storeCookie(@NotNull NamespacedKey key, @org.jetbrains.annotations.NotNull byte[] value) Stores a cookie in this player's client.booleanHumanEntity.undiscoverRecipe(@NotNull NamespacedKey recipe) Undiscover a recipe for this player such that it has already been discovered.类型变量类型为NamespacedKey的org.bukkit.entity中的方法参数修饰符和类型方法说明intHumanEntity.discoverRecipes(@NotNull Collection<NamespacedKey> recipes) Discover a collection of recipes for this player such that they have not already been discovered.intHumanEntity.undiscoverRecipes(@NotNull Collection<NamespacedKey> recipes) Undiscover a collection of recipes for this player such that they have already been discovered. -
org.bukkit.entity.memory中NamespacedKey的使用
修饰符和类型方法说明MemoryKey.getKey()已过时。A key might not always be present, useMemoryKey.getKeyOrThrow()instead.MemoryKey.getKeyOrNull()MemoryKey.getKeyOrThrow()参数类型为NamespacedKey的org.bukkit.entity.memory中的方法修饰符和类型方法说明MemoryKey.getByKey(@NotNull NamespacedKey namespacedKey) Returns aMemoryKeyby aNamespacedKey. -
org.bukkit.event.player中NamespacedKey的使用
修饰符和类型方法说明PlayerCustomClickEvent.getId()Gets the ID of the custom action.PlayerRecipeDiscoverEvent.getRecipe()获取本次解锁的配方的 NamespacedKey.参数类型为NamespacedKey的org.bukkit.event.player中的构造器限定符构造器说明PlayerCustomClickEvent(@NotNull Player player, @NotNull NamespacedKey id, @Nullable com.google.gson.JsonElement data) PlayerRecipeDiscoverEvent(@NotNull Player who, @NotNull NamespacedKey recipe) -
org.bukkit.event.world中NamespacedKey的使用
返回变量类型为NamespacedKey的类型的org.bukkit.event.world中的方法修饰符和类型方法说明AsyncStructureGenerateEvent.getBlockTransformers()Gets all block transformers in a unmodifiable map.AsyncStructureGenerateEvent.getEntityTransformers()Gets all entity transformers in a unmodifiable map.参数类型为NamespacedKey的org.bukkit.event.world中的方法修饰符和类型方法说明AsyncStructureGenerateEvent.getBlockTransformer(@NotNull NamespacedKey key) Gets a block transformer by key.AsyncStructureGenerateEvent.getEntityTransformer(@NotNull NamespacedKey key) Gets a entity transformer by key.voidAsyncStructureGenerateEvent.removeBlockTransformer(@NotNull NamespacedKey key) Removes a block transformer.voidAsyncStructureGenerateEvent.removeEntityTransformer(@NotNull NamespacedKey key) Removes a entity transformer.voidAsyncStructureGenerateEvent.setBlockTransformer(@NotNull NamespacedKey key, @NotNull BlockTransformer transformer) Sets a block transformer to a key.voidAsyncStructureGenerateEvent.setEntityTransformer(@NotNull NamespacedKey key, @NotNull EntityTransformer transformer) Sets a entity transformer to a key. -
org.bukkit.generator.structure中NamespacedKey的使用
修饰符和类型方法说明abstract @NotNull NamespacedKeyStructure.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.abstract @NotNull NamespacedKeyStructureType.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead. -
org.bukkit.inventory中NamespacedKey的使用
修饰符和类型方法说明ItemFlag.getComponent()CookingRecipe.getKey()CraftingRecipe.getKey()ItemType.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.MenuType.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.SmithingRecipe.getKey()StonecuttingRecipe.getKey()参数类型为NamespacedKey的org.bukkit.inventory中的构造器限定符构造器说明BlastingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) BlastingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) CampfireRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) CampfireRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) CookingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) Create a cooking recipe to craft the specified ItemStack.CookingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) Create a cooking recipe to craft the specified ItemStack.protectedCraftingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result) FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, int data, float experience, int cookingTime) 已过时。ShapedRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result) Create a shaped recipe to craft the specified ItemStack.ShapelessRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result) Create a shapeless recipe to craft the specified ItemStack.SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) 已过时。as of Minecraft 1.20, smithing recipes are now separated into two distinct recipe types,SmithingTransformRecipeandSmithingTrimRecipe.SmithingTransformRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) Create a smithing recipe to produce the specified result ItemStack.SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) 已过时。trimPattern must be specifiedSmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition, @NotNull TrimPattern trimPattern) SmokingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) SmokingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input) Create a cooking recipe to craft the specified ItemStack.StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source) Create a Stonecutting recipe to craft the specified ItemStack.TransmuteRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a transmute recipe to produce a result of the specified type.TransmuteRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a transmute recipe to produce a result of the specified type. -
org.bukkit.inventory.meta中NamespacedKey的使用
修饰符和类型方法说明ItemMeta.getItemModel()Gets the custom item model.SkullMeta.getNoteBlockSound()Gets the sound to play if the skull is placed on a note block.ItemMeta.getTooltipStyle()Gets the custom tooltip style.返回变量类型为NamespacedKey的类型的org.bukkit.inventory.meta中的方法参数类型为NamespacedKey的org.bukkit.inventory.meta中的方法修饰符和类型方法说明voidKnowledgeBookMeta.addRecipe(@NotNull NamespacedKey... recipes) 向书的末尾添加新的合成配方.voidItemMeta.setItemModel(@Nullable NamespacedKey itemModel) Sets the custom item model.voidSkullMeta.setNoteBlockSound(@Nullable NamespacedKey noteBlockSound) Sets the sound to play if the skull is placed on a note block.voidItemMeta.setTooltipStyle(@Nullable NamespacedKey tooltipStyle) 设置自定义工具提示样式。类型变量类型为NamespacedKey的org.bukkit.inventory.meta中的方法参数修饰符和类型方法说明voidKnowledgeBookMeta.setRecipes(@NotNull List<NamespacedKey> recipes) 清空书本内原有的合成配方, 替换为提供的合成配方. -
org.bukkit.inventory.meta.components中NamespacedKey的使用
修饰符和类型方法说明EquippableComponent.getCameraOverlay()Gets the key of the camera overlay to use when equipped.UseCooldownComponent.getCooldownGroup()Gets the custom cooldown group to be used for similar items, if set.EquippableComponent.getModel()Gets the key of the model to use when equipped.JukeboxPlayableComponent.getSongKey()Gets the key of the song assigned to this component.修饰符和类型方法说明voidEquippableComponent.setCameraOverlay(@Nullable NamespacedKey key) Sets the key of the camera overlay to use when equipped.voidUseCooldownComponent.setCooldownGroup(@Nullable NamespacedKey song) Sets the custom cooldown group to be used for similar items.voidEquippableComponent.setModel(@Nullable NamespacedKey key) Sets the key of the model to use when equipped.voidJukeboxPlayableComponent.setSongKey(@NotNull NamespacedKey song) Sets the key of the song assigned to this component. -
org.bukkit.inventory.meta.tags中NamespacedKey的使用
修饰符和类型方法说明<T,Z> Z CustomItemTagContainer.getCustomTag(@NotNull NamespacedKey key, @NotNull ItemTagType<T, Z> type) 已过时。Returns the custom tag's value that is stored on the item.<T,Z> boolean CustomItemTagContainer.hasCustomTag(@NotNull NamespacedKey key, @NotNull ItemTagType<T, Z> type) 已过时。Returns if the item meta has a custom tag registered matching the provided parameters.voidCustomItemTagContainer.removeCustomTag(@NotNull NamespacedKey key) 已过时。Removes a custom key from the item meta.<T,Z> void CustomItemTagContainer.setCustomTag(@NotNull NamespacedKey key, @NotNull ItemTagType<T, Z> type, Z value) 已过时。Stores a custom value on theItemMeta. -
org.bukkit.inventory.meta.trim中NamespacedKey的使用
修饰符和类型方法说明TrimMaterial.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.TrimPattern.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead. -
org.bukkit.loot中NamespacedKey的使用
返回NamespacedKey的org.bukkit.loot中的方法 -
org.bukkit.map中NamespacedKey的使用
返回NamespacedKey的org.bukkit.map中的方法修饰符和类型方法说明MapCursor.Type.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead. -
org.bukkit.packs中NamespacedKey的使用
参数类型为NamespacedKey的org.bukkit.packs中的方法修饰符和类型方法说明DataPackManager.getDataPack(@NotNull NamespacedKey dataPackKey) Gets aDataPackby its key. -
org.bukkit.persistence中NamespacedKey的使用
返回变量类型为NamespacedKey的类型的org.bukkit.persistence中的方法修饰符和类型方法说明PersistentDataContainer.getKeys()Get the set of keys present on thisPersistentDataContainerinstance.参数类型为NamespacedKey的org.bukkit.persistence中的方法修饰符和类型方法说明<P,C> C PersistentDataContainer.get(@NotNull NamespacedKey key, @NotNull PersistentDataType<P, C> type) Returns the metadata value that is stored on thePersistentDataHolderinstance.<P,C> C PersistentDataContainer.getOrDefault(@NotNull NamespacedKey key, @NotNull PersistentDataType<P, C> type, C defaultValue) Returns the metadata value that is stored on thePersistentDataHolderinstance.booleanPersistentDataContainer.has(@NotNull NamespacedKey key) Returns if the persistent metadata provider has metadata registered matching the provided parameters.<P,C> boolean PersistentDataContainer.has(@NotNull NamespacedKey key, @NotNull PersistentDataType<P, C> type) Returns if the persistent metadata provider has metadata registered matching the provided parameters.voidPersistentDataContainer.remove(@NotNull NamespacedKey key) Removes a custom key from thePersistentDataHolderinstance.<P,C> void PersistentDataContainer.set(@NotNull NamespacedKey key, @NotNull PersistentDataType<P, C> type, C value) Stores a metadata value on thePersistentDataHolderinstance. -
org.bukkit.potion中NamespacedKey的使用
修饰符和类型方法说明abstract @NotNull NamespacedKeyPotionEffectType.getKey()已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.PotionType.getKey()已过时。A key might not always be present, usePotionType.getKeyOrThrow()instead.PotionType.getKeyOrNull()PotionType.getKeyOrThrow()参数类型为NamespacedKey的org.bukkit.potion中的方法修饰符和类型方法说明static @Nullable PotionEffectTypePotionEffectType.getByKey(@Nullable NamespacedKey key) 已过时。仅为保障向后兼容性, 请使用Registry.get(NamespacedKey) -
org.bukkit.registry中NamespacedKey的使用
修饰符和类型方法说明RegistryAware.getKeyOrNull()Gets the key of this instance if it is registered otherwise returnsnull.RegistryAware.getKeyOrThrow()Gets the key of this instance if it is registered otherwise throws an error. -
org.bukkit.structure中NamespacedKey的使用
返回变量类型为NamespacedKey的类型的org.bukkit.structure中的方法参数类型为NamespacedKey的org.bukkit.structure中的方法修饰符和类型方法说明voidStructureManager.deleteStructure(@NotNull NamespacedKey structureKey) Unregisters the specified structure and deletes itsstructure filefrom the primary world folder.voidStructureManager.deleteStructure(@NotNull NamespacedKey structureKey, boolean unregister) Deletes thestructure filefor the specified structure from the primary world folder.StructureManager.getStructure(@NotNull NamespacedKey structureKey) Gets a registered Structure.StructureManager.getStructureFile(@NotNull NamespacedKey structureKey) Gets the location where a structure file would exist in the primary world directory based on the NamespacedKey using the format world/generated/{NAMESPACE}/structures/{KEY}.nbt.StructureManager.loadStructure(@NotNull NamespacedKey structureKey) Loads the structure for the specified key and automatically registers it.StructureManager.loadStructure(@NotNull NamespacedKey structureKey, boolean register) Loads a structure for the specified key and optionallyregistersit.StructureManager.registerStructure(@NotNull NamespacedKey structureKey, @NotNull Structure structure) Registers the given structure.voidStructureManager.saveStructure(@NotNull NamespacedKey structureKey) Saves the currentlyregistered structurefor the specifiedkeyto the primary world folder as specified by {#getStructureFile(NamespacedKey}.voidStructureManager.saveStructure(@NotNull NamespacedKey structureKey, @NotNull Structure structure) Saves a structure with a given key to the primary world folder.StructureManager.unregisterStructure(@NotNull NamespacedKey structureKey) Unregisters a structure.
RegistryAware.getKeyOrThrow()instead.