Okay cool. Makes sense. Thanks! and Ill change that parameter to a supplier.
Up front, I am very new to modding in forge, dabbled a bit in 1.6 (years ago) and just now getting back into it. I have created the following abstracted class for new foods. This gets called when registering the item/food in the differed register class. See below. This works as intended, in the FoodItemBase class, the .effect() call is looking for a Effects.XXX variable to get passed, however it must get passed into a Effect object in order to work. if you try to pass it as an Effects variable it throws an error stating "Effects can not be converted to effect" So my question is why does EffectInstance want a Effects variable to declare the type of potion effect in a normal none abstracted call, but when abstracted it wants the Effects variable passed as a Effect object? Thanks in advance! Example: This does not work ERROR:"Effects type can not be converted the Effect type"