Package net.minestom.server.advancements
Class AdvancementRoot
java.lang.Object
net.minestom.server.advancements.Advancement
net.minestom.server.advancements.AdvancementRoot
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.
-
Field Summary
Fields inherited from class net.minestom.server.advancements.Advancement
tab
-
Constructor Summary
ConstructorDescriptionAdvancementRoot
(@NotNull Component title, @NotNull Component description, @NotNull ItemStack icon, @NotNull FrameType frameType, float x, float y, @Nullable String background) AdvancementRoot
(@NotNull Component title, @NotNull Component description, @NotNull Material icon, FrameType frameType, float x, float y, @Nullable String background) -
Method Summary
Methods inherited from class net.minestom.server.advancements.Advancement
getDescription, getFrameType, getIcon, getIdentifier, getParent, getTab, getTitle, getUpdatePacket, getX, getY, hasToast, isAchieved, isHidden, setAchieved, setBackground, setDescription, setFrameType, setHidden, setIcon, setIdentifier, setParent, setTab, setTitle, setX, setY, showToast, toDisplayData, toMapping, toProgressMapping, update, updateCriteria
-
Constructor Details
-
AdvancementRoot
-
AdvancementRoot
-