Interface DisplayInfo.Builder
- 
- All Superinterfaces:
- AbstractBuilder<DisplayInfo>,- Buildable.Builder<DisplayInfo>,- Builder<DisplayInfo,DisplayInfo.Builder>,- CopyableBuilder<DisplayInfo,DisplayInfo.Builder>,- ResettableBuilder<DisplayInfo,DisplayInfo.Builder>
 - Enclosing interface:
- DisplayInfo
 
 public static interface DisplayInfo.Builder extends Builder<DisplayInfo,DisplayInfo.Builder>, CopyableBuilder<DisplayInfo,DisplayInfo.Builder> A builder to createDisplayInfos.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DisplayInfo.BuilderannounceToChat(boolean announceToChat)Sets whether a notification should be shown in the global chat.DisplayInfobuild()Builds theDisplayInfo.DisplayInfo.Builderdescription(Component description)Sets the description.DisplayInfo.Builderhidden(boolean hidden)Sets whether theAdvancementshould be hidden.default DisplayInfo.Buildericon(java.util.function.Supplier<? extends ItemType> itemType)Sets the icon of the advancement with the specifiedItemType.default DisplayInfo.Buildericon(ItemStack itemStack)Sets the icon of the advancement with the specifiedItemStack.DisplayInfo.Buildericon(ItemStackSnapshot itemStackSnapshot)Sets the icon of the advancement with the specifiedItemStackSnapshot.default DisplayInfo.Buildericon(ItemType itemType)Sets the icon of the advancement with the specifiedItemType.DisplayInfo.BuildershowToast(boolean showToast)Sets whether a toast should be shown.DisplayInfo.Buildertitle(Component title)Sets the title.default DisplayInfo.Buildertype(java.util.function.Supplier<? extends AdvancementType> advancementType)Sets theAdvancementType.DisplayInfo.Buildertype(AdvancementType advancementType)Sets theAdvancementType.- 
Methods inherited from interface org.spongepowered.api.util.CopyableBuilderfrom
 
- 
 
- 
- 
- 
Method Detail- 
typedefault DisplayInfo.Builder type(java.util.function.Supplier<? extends AdvancementType> advancementType) Sets theAdvancementType. Defaults toAdvancementTypes.TASK.- Parameters:
- advancementType- The advancement type
- Returns:
- This builder, for chaining
 
 - 
typeDisplayInfo.Builder type(AdvancementType advancementType) Sets theAdvancementType. Defaults toAdvancementTypes.TASK.- Parameters:
- advancementType- The advancement type
- Returns:
- This builder, for chaining
 
 - 
descriptionDisplayInfo.Builder description(Component description) Sets the description. Defaults toComponent.empty().- Parameters:
- description- The description
- Returns:
- This builder, for chaining
 
 - 
titleDisplayInfo.Builder title(Component title) Sets the title.- Parameters:
- title- The title
- Returns:
- This builder, for chaining
 
 - 
icondefault DisplayInfo.Builder icon(java.util.function.Supplier<? extends ItemType> itemType) Sets the icon of the advancement with the specifiedItemType.- Parameters:
- itemType- The item type
- Returns:
- This builder, for chaining
 
 - 
icondefault DisplayInfo.Builder icon(ItemType itemType) Sets the icon of the advancement with the specifiedItemType.- Parameters:
- itemType- The item type
- Returns:
- This builder, for chaining
 
 - 
icondefault DisplayInfo.Builder icon(ItemStack itemStack) Sets the icon of the advancement with the specifiedItemStack.- Parameters:
- itemStack- The item stack
- Returns:
- This builder, for chaining
 
 - 
iconDisplayInfo.Builder icon(ItemStackSnapshot itemStackSnapshot) Sets the icon of the advancement with the specifiedItemStackSnapshot.- Parameters:
- itemStackSnapshot- The item stack snapshot
- Returns:
- This builder, for chaining
 
 - 
showToastDisplayInfo.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
 
 - 
announceToChatDisplayInfo.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
 
 - 
hiddenDisplayInfo.Builder hidden(boolean hidden) Sets whether theAdvancementshould 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
 
 - 
buildDisplayInfo build() Builds theDisplayInfo.- Specified by:
- buildin interface- AbstractBuilder<DisplayInfo>
- Specified by:
- buildin interface- Buildable.Builder<DisplayInfo>
- Returns:
- The display info
 
 
- 
 
-