I'm having some trouble registering a TileEntityRenderer
what am I doing wrong?
Code:
ClientRegistry.bindTileEntityRenderer(ModTileEntityTypes.DRYER, new DryerTileEntityRenderer(TileEntityRendererDispatcher.instance));
IntelliJ error:
tileEntityType:
Required type: TileEntityType<T>
Provided: TileEntityType<capture of ?>
rendererFactory:
Required type: Function<? super TileEntityRendererDispatcher, ? extends TileEntityRenderer<? super T>>
Provided: DryerTileEntityRenderer
reason: no instance(s) of type variable(s) T exist so that DryerTileEntityRenderer conforms to Function<? super TileEntityRendererDispatcher, ? extends TileEntityRenderer<? super T>>
DryerTileEntityRenderer class:
public class DryerTileEntityRenderer extends TileEntityRenderer<DryerTileEntity> {
public DryerTileEntityRenderer(TileEntityRendererDispatcher p_i226006_1_) {
super(p_i226006_1_);
}
@Override
public void func_225616_a_(DryerTileEntity p_225616_1_, float p_225616_2_, MatrixStack p_225616_3_, IRenderTypeBuffer p_225616_4_, int p_225616_5_, int p_225616_6_) {
}
}