Interface DisplayInfo.Builder

    • Method Detail

      • icon

        default DisplayInfo.Builder icon​(Supplier<? extends ItemType> itemType)
        Sets the icon of the advancement with the specified ItemType.
        Parameters:
        itemType - The item type
        Returns:
        This builder, for chaining
      • icon

        default DisplayInfo.Builder icon​(ItemType itemType)
        Sets the icon of the advancement with the specified ItemType.
        Parameters:
        itemType - The item type
        Returns:
        This builder, for chaining
      • icon

        default DisplayInfo.Builder icon​(ItemStack itemStack)
        Sets the icon of the advancement with the specified ItemStack.
        Parameters:
        itemStack - The item stack
        Returns:
        This builder, for chaining
      • showToast

        DisplayInfo.Builder showToast​(boolean showToast)
        Sets whether a toast should be shown. This is the notification that will be displayed in the top right corner.

        Defaults to true.

        Parameters:
        showToast - Whether a toast should be shown
        Returns:
        This builder, for chaining
      • announceToChat

        DisplayInfo.Builder announceToChat​(boolean announceToChat)
        Sets whether a notification should be shown in the global chat.

        Defaults to true.

        Parameters:
        announceToChat - Whether a notification should be shown in the chat
        Returns:
        This builder, for chaining
      • hidden

        DisplayInfo.Builder hidden​(boolean hidden)
        Sets whether the Advancement should be hidden.

        Hidden advancements will only appear in the tree once they are unlocked. The lines that connect them to other advancements are still present.

        Parameters:
        hidden - Is hidden
        Returns:
        This builder, for chaining