Hello
I have recently started modding with forge in 1.12.2. and now i want to update my mod to 1.13.2.
When i start updating i have some problems:
My Code in 1.12.2:
public class LyriaIngredientFactorie implements IIngredientFactory
{
@Override
public Ingredient parse(JsonContext context, JsonObject json)
{
Ingredient ingredient = context.getConstant(json.get("item").getAsString());
ingredient.getMatchingStacks()[0].setCount(json.get("count").getAsInt());
return ingredient;
}
}
In 1.13.2 there is no class IIngredientFactory. I think the new Class is IIngredientSerializer, but i am not sure.
I tried it out, but i downt know
public class LyriaIngredientFactorie implements IIngredientSerializer<IngredientOverride>
{
@Override
public IngredientOverride parse(PacketBuffer buffer)
{
return null;
}
@Override
public IngredientOverride parse(JsonObject json)
{
return null;
}
@Override
public void write(PacketBuffer buffer, IngredientOverride ingredient)
{
}
}
Maybe someone can help me updating this.
A second broblem is, that i used the classes "FMLClientHandler" and "ReflectionHelper" and both are not working any more.
I called "FMLClientHandler.instance().getClient().player" in the FMLClientHandler, so what is the new call?
I hope someone can help me, thanks in advance
Wolf2323