public final class Notification
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Notification.Builder
Builder for
Notification . |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLOR
The default color used in
Notification.Builder . |
static long |
DEFAULT_DISPLAY_DURATION
The default display duration used in
Notification.Builder . |
static ClientResource |
DEFAULT_TEXTURE
The default display icon used in
Notification.Builder . |
Modifier and Type | Method and Description |
---|---|
static @NotNull Notification.Builder |
builder()
Begins a new builder of this class.
|
boolean |
equals(java.lang.Object obj) |
int |
getColor()
Get the color of the notification.
|
@NotNull java.lang.String |
getDescription()
Get the description of the notification.
|
long |
getDuration()
Get the duration of the notification in milliseconds.
|
@NotNull ClientResource |
getTexture()
Get the texture of the notification.
|
@Nullable java.lang.String |
getTitle()
Get the title of the notification.
|
int |
hashCode() |
@NotNull java.lang.String |
toString() |
public static final int DEFAULT_COLOR
Notification.Builder
.public static final long DEFAULT_DISPLAY_DURATION
Notification.Builder
.public static final ClientResource DEFAULT_TEXTURE
Notification.Builder
.@Nullable public @Nullable java.lang.String getTitle()
@NotNull public @NotNull java.lang.String getDescription()
public int getColor()
public long getDuration()
@NotNull public @NotNull ClientResource getTexture()
ClientResource
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public static @NotNull Notification.Builder builder()