ITEM can not be a resolve or a field
ModxVoldHunter opened this issue ยท 1 comments
here is my code
package modxvoldhunter.packnite.item;
import java.rmi.registry.Registry;
import modxvoldhunter.packnite.packnite;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
public class Moditems {
public static final Item RAW_PACKNITE = registeritems("raw_packnite",
new Item(new FabricItemSettings()));
private static Item registeritems(String name, Item item){
return Registry.register(Registry.ITEM, new Identifier(packnite.MOD_ID) Item);
}
public static void registerModitems() {
packnite.LOGGER.debug("Registering items for" + packnite.MOD_ID);
}
}
what errors im getting
33554502 ITEM cannot be resolved or is not a field
1610612968 Syntax error on token "Item", delete this token
๐ We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for either a discussion thread, or a message on our discord server. Please post your request on one of these, and the conversation can continue there.