public class Criterion
extends java.lang.Object
コンストラクタと説明 |
---|
Criterion() |
Criterion(ICriterionInstance p_i47470_1_) |
修飾子とタイプ | メソッドと説明 |
---|---|
static java.util.Map<java.lang.String,Criterion> |
criteriaFromJson(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context)
Read criteria from
json . |
static java.util.Map<java.lang.String,Criterion> |
criteriaFromNetwork(PacketBuffer bus)
Read criteria from
buf . |
static Criterion |
criterionFromJson(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context)
Deserialize a single
Criterion from json . |
static Criterion |
criterionFromNetwork(PacketBuffer p_192146_0_) |
ICriterionInstance |
getCriterionInstance() |
com.google.gson.JsonElement |
serialize() |
static void |
serializeToNetwork(java.util.Map<java.lang.String,Criterion> criteria,
PacketBuffer buf)
Write
criteria to buf . |
void |
serializeToNetwork(PacketBuffer p_192140_1_) |
public Criterion(ICriterionInstance p_i47470_1_)
public Criterion()
public void serializeToNetwork(PacketBuffer p_192140_1_)
public static Criterion criterionFromJson(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
Criterion
from json
. The ICriterionTrigger
is chosen by the
"trigger"
property of the object, which can then handle the optional "conditions"
in the object.
The "conditions"
, if present, must be a JsonObject
. The resulting ICriterionInstance
is
wrapped in a Criterion
.Criterion
.ICriterionTrigger.deserializeInstance(JsonObject, JsonDeserializationContext)
public static Criterion criterionFromNetwork(PacketBuffer p_192146_0_)
public static java.util.Map<java.lang.String,Criterion> criteriaFromJson(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
json
. The keys of the object name the criteria, and the values (which must be objects)
are the criteria themselves.Criterion
and its name.criterionFromJson(JsonObject, JsonDeserializationContext)
public static java.util.Map<java.lang.String,Criterion> criteriaFromNetwork(PacketBuffer bus)
buf
.Criterion
and its name.serializeToNetwork(Map, PacketBuffer)
public static void serializeToNetwork(java.util.Map<java.lang.String,Criterion> criteria, PacketBuffer buf)
criteria
to buf
.@Nullable public ICriterionInstance getCriterionInstance()
public com.google.gson.JsonElement serialize()