fabric: ITEM cannot be resolved or is not a field when using Registry.ITEM
I get this error when accessing Registry.ITEM
in onInitialization()
method of ModInitializer
.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (2 by maintainers)
import java.rmi.registry.Registry;
yep, another registry import as i thought. try it without this line.wrong import for Registry
I have imported
net.minecraft.util.registry.*