public static class Advancement.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Criterion> |
criteria |
private DisplayInfo |
display |
private Advancement |
parent |
private ResourceLocation |
parentId |
private java.lang.String[][] |
requirements |
private AdvancementRewards |
rewards |
Constructor and Description |
---|
Builder(ResourceLocation p_i47414_1_,
DisplayInfo p_i47414_2_,
AdvancementRewards p_i47414_3_,
java.util.Map<java.lang.String,Criterion> p_i47414_4_,
java.lang.String[][] p_i47414_5_) |
Modifier and Type | Method and Description |
---|---|
Advancement |
build(ResourceLocation id) |
static Advancement.Builder |
deserialize(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context) |
static Advancement.Builder |
readFrom(PacketBuffer buf) |
boolean |
resolveParent(java.util.function.Function<ResourceLocation,Advancement> lookup) |
java.lang.String |
toString() |
void |
writeTo(PacketBuffer buf) |
private final ResourceLocation parentId
private Advancement parent
private final DisplayInfo display
private final AdvancementRewards rewards
private final java.util.Map<java.lang.String,Criterion> criteria
private final java.lang.String[][] requirements
Builder(@Nullable ResourceLocation p_i47414_1_, @Nullable DisplayInfo p_i47414_2_, AdvancementRewards p_i47414_3_, java.util.Map<java.lang.String,Criterion> p_i47414_4_, java.lang.String[][] p_i47414_5_)
public boolean resolveParent(java.util.function.Function<ResourceLocation,Advancement> lookup)
public Advancement build(ResourceLocation id)
public void writeTo(PacketBuffer buf)
public java.lang.String toString()
toString
in class java.lang.Object
public static Advancement.Builder deserialize(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
public static Advancement.Builder readFrom(PacketBuffer buf) throws java.io.IOException
java.io.IOException