How to use getAdvancement(NamespacedKey key)

Discussion in 'Plugin Development' started by maxcreeper360, Feb 18, 2023.

Thread Status:
Not open for further replies.
  1. Offline

    maxcreeper360

    I need to get the "Into Fire" advancement, but I don't know how to use this method. Can anyone describe NamespacedKey to me?
     
  2. Offline

    lst96

    NamespacedKey is a class in the Bukkit API that represents a unique identifier for various game elements, such as items, blocks, and advancements. It consists of two parts: a namespace and a key.

    The namespace is a string that identifies the mod, plugin, or game component that provides the element. For example, "minecraft" is the namespace for elements that are part of the Minecraft game itself.

    The key is a string that uniquely identifies the element within its namespace. For example, "diamond_pickaxe" is the key for the Diamond Pickaxe item.

    To use a NamespacedKey, you first create an instance of the class by providing the namespace and key strings as parameters to the constructor:
     
Thread Status:
Not open for further replies.

Share This Page