2019-06-20 00:29:15 +02:00
|
|
|
package io.github.cottonmc.templates;
|
|
|
|
|
|
|
|
import io.github.cottonmc.templates.block.SlopeBlock;
|
|
|
|
import io.github.cottonmc.templates.model.SlopeModel;
|
2019-06-20 08:40:56 +02:00
|
|
|
import io.github.cottonmc.templates.model.TemplateModelVariantProvider;
|
2019-06-20 00:29:15 +02:00
|
|
|
import net.fabricmc.api.ClientModInitializer;
|
|
|
|
import net.fabricmc.fabric.api.client.model.ModelLoadingRegistry;
|
|
|
|
import net.minecraft.util.math.Direction;
|
|
|
|
|
|
|
|
public class TemplatesClient implements ClientModInitializer {
|
2019-06-20 08:40:56 +02:00
|
|
|
public static TemplateModelVariantProvider provider = new TemplateModelVariantProvider();
|
2023-06-15 07:59:48 +02:00
|
|
|
|
2019-06-20 00:29:15 +02:00
|
|
|
@Override
|
|
|
|
public void onInitializeClient() {
|
2023-06-15 07:59:48 +02:00
|
|
|
ModelLoadingRegistry.INSTANCE.registerVariantProvider(rm -> provider);
|
|
|
|
provider.registerTemplateModels(Templates.SLOPE, Templates.SLOPE.getDefaultState().with(SlopeBlock.FACING, Direction.SOUTH), SlopeModel::new);
|
2019-06-20 00:29:15 +02:00
|
|
|
}
|
|
|
|
}
|