Interface AdvancementTree
-
public interface AdvancementTree
Represents aAdvancement
tree or tab menu. The tree will become visible to aPlayer
once the rootAdvancement
gets achieved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ResourceKey>
backgroundPath()
Gets the background texture of this tree.Advancement
rootAdvancement()
Gets the rootAdvancement
.
-
-
-
Method Detail
-
rootAdvancement
Advancement rootAdvancement()
Gets the rootAdvancement
.- Returns:
- The root advancement
-
backgroundPath
java.util.Optional<ResourceKey> backgroundPath()
Gets the background texture of this tree.- Returns:
- The background texture
-
-