Package net.minecraft.advancements
Class Criterion
- java.lang.Object
-
- net.minecraft.advancements.Criterion
-
public class Criterion extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ICriterionInstance
trigger
-
Constructor Summary
Constructors Constructor Description Criterion()
Criterion(ICriterionInstance p_i47470_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,Criterion>
criteriaFromJson(com.google.gson.JsonObject p_232634_0_, ConditionArrayParser p_232634_1_)
static java.util.Map<java.lang.String,Criterion>
criteriaFromNetwork(PacketBuffer p_192142_0_)
static Criterion
criterionFromJson(com.google.gson.JsonObject p_232633_0_, ConditionArrayParser p_232633_1_)
static Criterion
criterionFromNetwork(PacketBuffer p_192146_0_)
ICriterionInstance
getTrigger()
com.google.gson.JsonElement
serializeToJson()
static void
serializeToNetwork(java.util.Map<java.lang.String,Criterion> p_192141_0_, PacketBuffer p_192141_1_)
void
serializeToNetwork(PacketBuffer p_192140_1_)
-
-
-
Field Detail
-
trigger
private final ICriterionInstance trigger
-
-
Constructor Detail
-
Criterion
public Criterion(ICriterionInstance p_i47470_1_)
-
Criterion
public Criterion()
-
-
Method Detail
-
serializeToNetwork
public void serializeToNetwork(PacketBuffer p_192140_1_)
-
criterionFromJson
public static Criterion criterionFromJson(com.google.gson.JsonObject p_232633_0_, ConditionArrayParser p_232633_1_)
-
criterionFromNetwork
public static Criterion criterionFromNetwork(PacketBuffer p_192146_0_)
-
criteriaFromJson
public static java.util.Map<java.lang.String,Criterion> criteriaFromJson(com.google.gson.JsonObject p_232634_0_, ConditionArrayParser p_232634_1_)
-
criteriaFromNetwork
public static java.util.Map<java.lang.String,Criterion> criteriaFromNetwork(PacketBuffer p_192142_0_)
-
serializeToNetwork
public static void serializeToNetwork(java.util.Map<java.lang.String,Criterion> p_192141_0_, PacketBuffer p_192141_1_)
-
getTrigger
@Nullable public ICriterionInstance getTrigger()
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-