Class AdvancementRoot

java.lang.Object
net.minestom.server.advancements.Advancement
net.minestom.server.advancements.AdvancementRoot

public class AdvancementRoot extends Advancement
Represents an Advancement which is the root of an AdvancementTab. Every tab requires one since advancements needs to be linked to a parent.

The difference between this and an Advancement is that the root is responsible for the tab background.

  • Constructor Details

    • AdvancementRoot

      public AdvancementRoot(@NotNull @NotNull Component title, @NotNull @NotNull Component description, @NotNull @NotNull ItemStack icon, @NotNull @NotNull FrameType frameType, float x, float y, @Nullable @Nullable String background)
    • AdvancementRoot

      public AdvancementRoot(@NotNull @NotNull Component title, @NotNull @NotNull Component description, @NotNull @NotNull Material icon, FrameType frameType, float x, float y, @Nullable @Nullable String background)