public final class Timestamp extends Object implements DynamicSerializable
| Modifier and Type | Field and Description |
|---|---|
private long |
time |
| Modifier | Constructor and Description |
|---|---|
private |
Timestamp(long time) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getTime() |
int |
hashCode() |
static Timestamp |
of(com.mojang.datafixers.Dynamic<?> dynamic) |
static Timestamp |
of(long time) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
String |
toString() |
public long getTime()
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize in interface DynamicSerializablepublic static Timestamp of(com.mojang.datafixers.Dynamic<?> dynamic)
public static Timestamp of(long time)