public class AdvancementCriterion extends Object
Modifier and Type | Field and Description |
---|---|
private CriterionConditions |
conditions |
Constructor and Description |
---|
AdvancementCriterion() |
AdvancementCriterion(CriterionConditions conditions) |
Modifier and Type | Method and Description |
---|---|
static Map<String,AdvancementCriterion> |
criteriaFromJson(JsonObject obj,
AdvancementEntityPredicateDeserializer predicateDeserializer) |
static Map<String,AdvancementCriterion> |
criteriaFromPacket(PacketByteBuf buf) |
static void |
criteriaToPacket(Map<String,AdvancementCriterion> criteria,
PacketByteBuf buf) |
static AdvancementCriterion |
fromJson(JsonObject obj,
AdvancementEntityPredicateDeserializer predicateDeserializer) |
static AdvancementCriterion |
fromPacket(PacketByteBuf buf) |
CriterionConditions |
getConditions() |
JsonElement |
toJson() |
void |
toPacket(PacketByteBuf buf) |
private final CriterionConditions conditions
public AdvancementCriterion(CriterionConditions conditions)
public AdvancementCriterion()
public void toPacket(PacketByteBuf buf)
public static AdvancementCriterion fromJson(JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer)
public static AdvancementCriterion fromPacket(PacketByteBuf buf)
public static Map<String,AdvancementCriterion> criteriaFromJson(JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer)
public static Map<String,AdvancementCriterion> criteriaFromPacket(PacketByteBuf buf)
public static void criteriaToPacket(Map<String,AdvancementCriterion> criteria, PacketByteBuf buf)
@Nullable public CriterionConditions getConditions()
public JsonElement toJson()