Fabric API

Fabric API

112M Downloads

Can't import `EntityRendererFactory`

Soulsender opened this issue ยท 3 comments

commented

I can't import EntityRendererFactory. I don't know why. I'm using Minecraft 1.20.1. I'm also using geckolib version 4.2 if that helps.

This is the import statement:

import net.minecraft.render.entity.EntityRendererFactory;

Help would be greatly appreciated, I can't find anything on this issue anywhere and it's driving me insane because it's the only problem in between me and spawning my modded entity.

image

commented

The issue tracker is for final issue reports and feature requests, not general problems. For those, start a Discussion, or visit the Discord.

It's likely you're using split sources (both src/main and src/client exist), as that's a default now because it's recommended.
Client-only code such as entity renderers must be in src/client. src/main cannot access client-only code, to prevent accidental usage of client-only code on dedicated servers.

If you have further questions, as mentioned, start a discussion, or visit the Discord.

commented

๐Ÿ‘‹ 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.

commented

I resolved my issue, apologies for the issue posting, I just couldn't find any anything relating to my problem online.

Posting my answer here for people experiencing a similar issue.