27 lines
No EOL
1.3 KiB
Java
27 lines
No EOL
1.3 KiB
Java
package su.a71.new_soviet;
|
|
|
|
import net.fabricmc.api.ClientModInitializer;
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
|
|
import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry;
|
|
import net.minecraft.client.render.RenderLayer;
|
|
import su.a71.new_soviet.entity.TVBlockEntity;
|
|
import su.a71.new_soviet.registration.NSE_Blocks;
|
|
import su.a71.new_soviet.registration.NSE_Custom;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class NewSovietClient implements ClientModInitializer {
|
|
|
|
@Override
|
|
public void onInitializeClient() {
|
|
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.CRATE, RenderLayer.getCutout());
|
|
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.HANDRAIL, RenderLayer.getCutout());
|
|
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.TABLE_LAMP, RenderLayer.getCutout());
|
|
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.VINTAGE_LAMP, RenderLayer.getCutout());
|
|
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.CEILING_FAN, RenderLayer.getCutout());
|
|
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.SIREN, RenderLayer.getCutout());
|
|
|
|
BlockEntityRendererRegistry.register(NSE_Custom.TV_BLOCK_ENTITY, TVBlockEntityRenderer::new);
|
|
}
|
|
} |