so I'm kind of new to minecraft modding and using 1.16,
the code says it's an error and cannot figure out why.
private final int Supplier<Ingredient> repairMaterial;
repair material is in red saying can not resolve symbol, and Ingredient is underlined saing unexpected token.
I tried to define it here:
this.RepairMaterial = repairMaterial;
and same red error here:
public Ingredient getRepairMaterial() {
return repairMaterial.get();
}
so I'm kind of new to minecraft modding and using 1.16,
the code says it's an error and cannot figure out why.
You have 2 different declared types in that field.
I recommend reading this if you don't understand.
https://javapointers.com/java/java-core/fields-and-methods/
yup that fixed it. thank you.