So, I looked at the code again, and I found this.
public ProtoTableShapedRecipe addRecipe(ItemStack stack, Object ... varargs){
int i = 0;
...
...
...
String[] astring = (String[])((String[])varargs[i++]);
}
What I was interested in is why there is a need for two casts of String [], and when it comes to passing the variable ito varargs[], it will look at the value 1 and make i1 or is it just adding 1 to iwhen it is passed, and iremains by 0.
source
share