/
Advancement.java
47 lines (39 loc) · 1.41 KB
/
Advancement.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
package com.denizenscript.denizen.nms.util;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ItemStack;
public class Advancement {
public enum Frame {TASK, CHALLENGE, GOAL}
public boolean temporary;
public NamespacedKey key;
public NamespacedKey parent;
public ItemStack icon;
public String title;
public String description;
public NamespacedKey background;
public Frame frame;
public boolean toast;
public boolean announceToChat;
public boolean hidden;
public float xOffset;
public float yOffset;
public int length;
public boolean registered;
public Advancement(boolean temporary, NamespacedKey key, NamespacedKey parent, ItemStack icon,
String title, String description, NamespacedKey background, Frame frame,
boolean toast, boolean announceToChat, boolean hidden, float xOffset, float yOffset, int length) {
this.temporary = temporary;
this.key = key;
this.parent = parent;
this.icon = icon;
this.title = title;
this.description = description;
this.background = background;
this.frame = frame;
this.toast = toast;
this.announceToChat = announceToChat;
this.hidden = hidden;
this.xOffset = xOffset;
this.yOffset = yOffset;
this.length = length;
}
}