Class RecipeConstructor
java.lang.Object
dev.latvian.mods.kubejs.recipe.schema.RecipeConstructor
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap<RecipeKey<?>, RecipeOptional<?>> Map<RecipeKey<?>, RecipeOptional<?>> -
Constructor Summary
ConstructorsConstructorDescriptionRecipeConstructor(RecipeKey<?>... keys) RecipeConstructor(List<RecipeKey<?>> keys) -
Method Summary
Modifier and TypeMethodDescriptioncreate(dev.latvian.mods.rhino.Context cx, SourceLine sourceLine, RecipeTypeFunction type, RecipeSchemaType schemaType, ComponentValueMap from) defaultValue(RecipeKey<T> key, RecipeOptional<T> value) override(RecipeKey<T> key, RecipeOptional<T> value) overrideValue(RecipeKey<T> key, T value) voidsetValues(RecipeScriptContext cx, RecipeSchemaType schemaType, ComponentValueMap from) com.google.gson.JsonObjecttoJson(RecipeSchemaType type, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> ops) toString()toString(OpsContainer ops)
-
Field Details
-
keys
-
overrides
-
defaultValues
-
-
Constructor Details
-
RecipeConstructor
-
RecipeConstructor
-
-
Method Details
-
override
-
overrideValue
-
defaultValue
-
toString
-
toString
-
create
public KubeRecipe create(dev.latvian.mods.rhino.Context cx, SourceLine sourceLine, RecipeTypeFunction type, RecipeSchemaType schemaType, ComponentValueMap from) -
setValues
-
toJson
public com.google.gson.JsonObject toJson(RecipeSchemaType type, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> ops)
-