public class Advancement extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Advancement.Task |
Modifier and Type | Field and Description |
---|---|
private Set<Advancement> |
children |
private Map<String,AdvancementCriterion> |
criteria |
private AdvancementDisplay |
display |
private Identifier |
id |
private Advancement |
parent |
private String[][] |
requirements |
private AdvancementRewards |
rewards |
private Text |
text |
Constructor and Description |
---|
Advancement(Identifier id,
Advancement parent,
AdvancementDisplay display,
AdvancementRewards rewards,
Map<String,AdvancementCriterion> criteria,
String[][] requirements) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Advancement child) |
Advancement.Task |
createTask() |
boolean |
equals(Object o) |
Iterable<Advancement> |
getChildren() |
Map<String,AdvancementCriterion> |
getCriteria() |
AdvancementDisplay |
getDisplay() |
Identifier |
getId() |
Advancement |
getParent() |
int |
getRequirementCount() |
String[][] |
getRequirements() |
AdvancementRewards |
getRewards() |
int |
hashCode() |
Text |
toHoverableText() |
String |
toString() |
private final Advancement parent
private final AdvancementDisplay display
private final AdvancementRewards rewards
private final Identifier id
private final Map<String,AdvancementCriterion> criteria
private final String[][] requirements
private final Set<Advancement> children
private final Text text
public Advancement(Identifier id, @Nullable Advancement parent, @Nullable AdvancementDisplay display, AdvancementRewards rewards, Map<String,AdvancementCriterion> criteria, String[][] requirements)
public Advancement.Task createTask()
@Nullable public Advancement getParent()
@Nullable public AdvancementDisplay getDisplay()
public AdvancementRewards getRewards()
public Iterable<Advancement> getChildren()
public Map<String,AdvancementCriterion> getCriteria()
@Environment(value=CLIENT) public int getRequirementCount()
public void addChild(Advancement child)
public Identifier getId()
public String[][] getRequirements()
public Text toHoverableText()