Package net.minecraft.advancements
Class Advancement
- java.lang.Object
-
- net.minecraft.advancements.Advancement
-
public class Advancement extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Advancement.Builder
-
Field Summary
Fields Modifier and Type Field Description private ITextComponent
chatComponent
private java.util.Set<Advancement>
children
private java.util.Map<java.lang.String,Criterion>
criteria
private DisplayInfo
display
private ResourceLocation
id
private Advancement
parent
private java.lang.String[][]
requirements
private AdvancementRewards
rewards
-
Constructor Summary
Constructors Constructor Description Advancement(ResourceLocation p_i47472_1_, Advancement p_i47472_2_, DisplayInfo p_i47472_3_, AdvancementRewards p_i47472_4_, java.util.Map<java.lang.String,Criterion> p_i47472_5_, java.lang.String[][] p_i47472_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(Advancement p_192071_1_)
Advancement.Builder
deconstruct()
boolean
equals(java.lang.Object p_equals_1_)
ITextComponent
getChatComponent()
java.lang.Iterable<Advancement>
getChildren()
java.util.Map<java.lang.String,Criterion>
getCriteria()
DisplayInfo
getDisplay()
ResourceLocation
getId()
int
getMaxCriteraRequired()
Advancement
getParent()
java.lang.String[][]
getRequirements()
AdvancementRewards
getRewards()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
parent
private final Advancement parent
-
display
private final DisplayInfo display
-
rewards
private final AdvancementRewards rewards
-
id
private final ResourceLocation id
-
criteria
private final java.util.Map<java.lang.String,Criterion> criteria
-
requirements
private final java.lang.String[][] requirements
-
children
private final java.util.Set<Advancement> children
-
chatComponent
private final ITextComponent chatComponent
-
-
Constructor Detail
-
Advancement
public Advancement(ResourceLocation p_i47472_1_, @Nullable Advancement p_i47472_2_, @Nullable DisplayInfo p_i47472_3_, AdvancementRewards p_i47472_4_, java.util.Map<java.lang.String,Criterion> p_i47472_5_, java.lang.String[][] p_i47472_6_)
-
-
Method Detail
-
deconstruct
public Advancement.Builder deconstruct()
-
getParent
@Nullable public Advancement getParent()
-
getDisplay
@Nullable public DisplayInfo getDisplay()
-
getRewards
public AdvancementRewards getRewards()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getChildren
public java.lang.Iterable<Advancement> getChildren()
-
getCriteria
public java.util.Map<java.lang.String,Criterion> getCriteria()
-
getMaxCriteraRequired
public int getMaxCriteraRequired()
-
addChild
public void addChild(Advancement p_192071_1_)
-
getId
public ResourceLocation getId()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getRequirements
public java.lang.String[][] getRequirements()
-
getChatComponent
public ITextComponent getChatComponent()
-
-