public static class Notification.Builder
extends java.lang.Object
Notification
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
@NotNull Notification |
build()
Assembles the
Notification . |
@NotNull Notification.Builder |
color(@NotNull java.awt.Color color)
Sets the color to be built into the
Notification . |
@NotNull Notification.Builder |
color(int color)
Sets the color to be built into the
Notification . |
@NotNull Notification.Builder |
description(@NotNull java.lang.String description)
Sets the description to be built into the
Notification . |
@NotNull Notification.Builder |
duration(long duration)
Sets the duration to be built into the
Notification . |
@NotNull Notification.Builder |
texture(@NotNull ClientResource texture)
Sets the texture to be built into the
Notification . |
@NotNull Notification.Builder |
title(@NotNull java.lang.String title)
Sets the title to be built into the
Notification . |
@NotNull public @NotNull Notification.Builder title(@NotNull @NotNull java.lang.String title)
Notification
.title
- the title@NotNull public @NotNull Notification.Builder description(@NotNull @NotNull java.lang.String description)
Notification
.description
- the description@NotNull public @NotNull Notification.Builder color(int color)
Notification
.color
- the color@NotNull public @NotNull Notification.Builder color(@NotNull @NotNull java.awt.Color color)
Notification
.color
- the color@NotNull public @NotNull Notification.Builder duration(long duration)
Notification
.duration
- the duration@NotNull public @NotNull Notification.Builder texture(@NotNull @NotNull ClientResource texture)
Notification
.texture
- the texture@NotNull public @NotNull Notification build()
Notification
.Notification