public class Advancement
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Advancement.Builder |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Advancement> |
children |
private java.util.Map<java.lang.String,Criterion> |
criteria |
private DisplayInfo |
display |
private ITextComponent |
displayText |
private ResourceLocation |
id |
private Advancement |
parent |
private java.lang.String[][] |
requirements |
private AdvancementRewards |
rewards |
Constructor and Description |
---|
Advancement(ResourceLocation id,
Advancement parentIn,
DisplayInfo displayIn,
AdvancementRewards rewardsIn,
java.util.Map<java.lang.String,Criterion> criteriaIn,
java.lang.String[][] requirementsIn) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Advancement advancementIn) |
Advancement.Builder |
copy() |
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.Iterable<Advancement> |
getChildren() |
java.util.Map<java.lang.String,Criterion> |
getCriteria() |
DisplayInfo |
getDisplay() |
ITextComponent |
getDisplayText() |
ResourceLocation |
getId() |
Advancement |
getParent() |
int |
getRequirementCount() |
java.lang.String[][] |
getRequirements() |
AdvancementRewards |
getRewards() |
int |
hashCode() |
java.lang.String |
toString() |
private final Advancement parent
private final DisplayInfo display
private final AdvancementRewards rewards
private final ResourceLocation id
private final java.util.Map<java.lang.String,Criterion> criteria
private final java.lang.String[][] requirements
private final java.util.Set<Advancement> children
private final ITextComponent displayText
public Advancement(ResourceLocation id, @Nullable Advancement parentIn, @Nullable DisplayInfo displayIn, AdvancementRewards rewardsIn, java.util.Map<java.lang.String,Criterion> criteriaIn, java.lang.String[][] requirementsIn)
public Advancement.Builder copy()
@Nullable public Advancement getParent()
@Nullable public DisplayInfo getDisplay()
public AdvancementRewards getRewards()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Iterable<Advancement> getChildren()
public java.util.Map<java.lang.String,Criterion> getCriteria()
public int getRequirementCount()
public void addChild(Advancement advancementIn)
public ResourceLocation getId()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String[][] getRequirements()
public ITextComponent getDisplayText()