i am trying to see if i can have my custom item implement IAugmentItem from COFH and i have the following code
const $ResourceLocation = Java.loadClass("net.minecraft.resources.ResourceLocation");
/* const BetterInputComponent = new $MappingComponent ($ItemComponents.INPUT,item => {
j = item.ingredient.toJson();
if(!j.isJsonObject()){
throw new Error("Error In Schema item should be a json object");
}
j = j.getAsJsonObject;
j.addProperty("count",item.count);
return j;
}, json => inputItem.ofJson(json));*/
const $ItemBuilder = Java.loadClass('dev.latvian.mods.kubejs.item.ItemBuilder');
const test = new JavaAdapter($ItemBuilder,{
getRegistryType: () => null,
createObject: () => null
},$ResourceLocation("kubejs","fake"));
``` however i get an unexpected error from my log i was expecting to get a Null something exception i instead get a NoSuchMethodException thanks in advance