use of mods.railcraft.common.advancements.criterion.SpikeMaulUseTrigger.Instance in project Railcraft by Railcraft.
the class SpikeMaulUseTrigger method deserializeInstance.
@Override
public Instance deserializeInstance(JsonObject json, JsonDeserializationContext context) {
NBTPredicate nbt = JsonTools.whenPresent(json, "nbt", NBTPredicate::deserialize, NBTPredicate.ANY);
ItemPredicate tool = JsonTools.whenPresent(json, "tool", ItemPredicate::deserialize, ItemPredicate.ANY);
LocationPredicate locationPredicate = JsonTools.whenPresent(json, "location", LocationPredicate::deserialize, LocationPredicate.ANY);
return new Instance(nbt, tool, locationPredicate);
}
Aggregations