/
PlayerProfile.java
66 lines (50 loc) · 1.47 KB
/
PlayerProfile.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package com.denizenscript.denizen.nms.util;
import java.util.UUID;
public class PlayerProfile {
private String name;
private UUID uuid;
private String texture;
private String textureSignature;
public PlayerProfile(String name, UUID uuid) {
this(name, uuid, null, null);
}
public PlayerProfile(String name, UUID uuid, String texture) {
this(name, uuid, texture, null);
}
public PlayerProfile(String name, UUID uuid, String texture, String textureSignature) {
this.name = name;
this.uuid = uuid;
this.texture = texture;
this.textureSignature = textureSignature;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public UUID getUniqueId() {
return uuid;
}
public void setUniqueId(UUID uuid) {
this.uuid = uuid;
}
public String getTexture() {
return texture;
}
public void setTexture(String texture) {
this.texture = texture;
}
public boolean hasTexture() {
return texture != null;
}
public String getTextureSignature() {
return textureSignature;
}
public void setTextureSignature(String textureSignature) {
this.textureSignature = textureSignature;
}
public boolean hasTextureSignature() {
return textureSignature != null;
}
}