public final class Cooldown
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Cooldown.Builder
Builder for
Cooldown . |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLOR
The default color used in
Cooldown.Builder . |
Modifier and Type | Method and Description |
---|---|
static @NotNull Cooldown.Builder |
builder()
Begins a new builder of this class.
|
boolean |
equals(java.lang.Object obj) |
int |
getColor()
Get the color of the cooldown.
|
long |
getDuration()
Get the duration of the cooldown in milliseconds.
|
@NotNull java.util.UUID |
getId()
Get the name of the cooldown.
|
@NotNull java.lang.String |
getName()
Get the name of the cooldown.
|
@NotNull ClientResource |
getTexture()
Get the texture of the notification.
|
int |
hashCode() |
@NotNull java.lang.String |
toString() |
public static final int DEFAULT_COLOR
Cooldown.Builder
.@NotNull public @NotNull java.util.UUID getId()
@NotNull public @NotNull java.lang.String getName()
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 Cooldown.Builder builder()