cannot infer type-variable(s) T

Версия Minecraft
1.16.5
5
0
менял тип моба по гайду по итогу жалуется на PlantsEntity::new, перепроверил сам класс там нету ошибок но в этом выдается
код
Java:
package mui.kuriat.legendsofworlds.entity;

import mui.kuriat.legendsofworlds.LegendsOfWorldsMod;
import mui.kuriat.legendsofworlds.entity.PlantsEntity;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModEntityTypes {
    public static final DeferredRegister<EntityType<?>> ENTITY_TYPES =
            DeferredRegister.create(ForgeRegistries.ENTITIES, LegendsOfWorldsMod.MODID);

    public static final RegistryObject<EntityType<PlantsEntity>> PLANTS =
            ENTITY_TYPES.register("plants",
                    () -> EntityType.Builder.of(PlantsEntity::new, MobCategory.MONSTER)
                            .sized(0.8f, 0.6f)
                            .build(new ResourceLocation(LegendsOfWorldsMod.MODID, "plants").toString()));


    public static void register(IEventBus bus) {
        ENTITY_TYPES.register(bus);
    }
}
сама ошибка
Java:
error: incompatible types: cannot infer type-variable(s) T
                    () -> EntityType.Builder.of(PlantsEntity::new, MobCategory.MONSTER)
                                               ^
    (argument mismatch; invalid constructor reference
      no suitable constructor found for PlantsEntity(EntityType<Entity>,Level)
          constructor PlantsEntity.PlantsEntity(SpawnEntity,Level) is not applicable
            (argument mismatch; EntityType<Entity> cannot be converted to SpawnEntity)
          constructor PlantsEntity.PlantsEntity(EntityType<PlantsEntity>,Level) is not applicable
            (argument mismatch; EntityType<Entity> cannot be converted to EntityType<PlantsEntity>))
  where T is a type-variable:
    T extends Entity declared in method <T>of(EntityFactory<T>,MobCategory)
 
Сверху