All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parzivail.util.client.model.compat.FrapiCompat Maven / Gradle / Ivy

package com.parzivail.util.client.model.compat;

import com.parzivail.util.runtime.ClassLoadingHelper;
import net.fabricmc.fabric.api.renderer.v1.material.MaterialFinder;
import net.fabricmc.fabric.api.renderer.v1.mesh.MeshBuilder;

import java.util.Optional;

public class FrapiCompat
{
	public static Optional getMaterialFinder82()
	{
		// FAPI >=0.82.0+1.19.4
		return ClassLoadingHelper.tryInit("net.fabricmc.fabric.impl.client.indigo.renderer.material.MaterialFinderImpl");
	}

	public static Optional getMeshBuilder()
	{
		return ClassLoadingHelper.tryInit("net.fabricmc.fabric.impl.client.indigo.renderer.mesh.MeshBuilderImpl");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy