Package net.minheur.techno_lib.builders
Class RecipeNbtBuilder
java.lang.Object
net.minheur.techno_lib.builders.RecipeNbtBuilder
The builder for adding NBT to properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.gson.JsonObjectThe object containing properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd aIntegernbtAdd aStringnbtstatic RecipeNbtBuildergetNbt()com.google.gson.JsonObjectGet the property Json
-
Field Details
-
properties
private final com.google.gson.JsonObject propertiesThe object containing properties
-
-
Constructor Details
-
RecipeNbtBuilder
public RecipeNbtBuilder()
-
-
Method Details
-
getNbt
-
addNbt
Add aStringnbt- Parameters:
key- the name of the nbtvalue- the value to assign- Returns:
- the current
RecipeNbtBuilder
-
addNbt
Add aIntegernbt- Parameters:
key- the name of the nbtvalue- the value to assign- Returns:
- the current
RecipeNbtBuilder
-
getPropertiesJson
public com.google.gson.JsonObject getPropertiesJson()Get the property Json- Returns:
- the json you built
-