gradle runClient: Cannot find symbol: Item #1342
-
Hello. I followed the item tutorial, and
This is the code: package net.fabricmc.example;
import net.fabricmc.api.ModInitializer;
public class ExampleMod implements ModInitializer {
// an instance of our new item
public static final Item FABRIC_ITEM = new Item(new FabricItemSettings().group(ItemGroup.MISC));
@Override
public void onInitialize() {
Registry.register(Registry.ITEM, new Identifier("tutorial", "fabric_item"), FABRIC_ITEM);
}
} Did I leave out an |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No I have imported |
Beta Was this translation helpful? Give feedback.
-
I got it myself... |
Beta Was this translation helpful? Give feedback.
I got it myself...