/
ClientSetup.java
29 lines (21 loc) · 1.44 KB
/
ClientSetup.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.Mattah12.kanohicraft.setup;
import com.Mattah12.kanohicraft.client.ProtoGenScreen;
import net.minecraft.client.gui.screens.MenuScreens;
import net.minecraft.client.renderer.ItemBlockRenderTypes;
import net.minecraft.client.renderer.RenderType;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
public class ClientSetup {
public static void init(FMLClientSetupEvent event){
event.enqueueWork(() -> {
MenuScreens.register(Registration.PROTOGEN_CONTAINER.get(), ProtoGenScreen::new);
});
ItemBlockRenderTypes.setRenderLayer(Registration.LIGHTSTONE_BLOCK_OVERWORLD.get(), RenderType.translucent());
ItemBlockRenderTypes.setRenderLayer(Registration.LIGHTSTONE_BLOCK_DEEPSLATE.get(), RenderType.translucent());
ItemBlockRenderTypes.setRenderLayer(Registration.LIGHTSTONE_WOOD_LAMP.get(),RenderType.translucent());
ItemBlockRenderTypes.setRenderLayer(Registration.LIGHTSTONE_STONE_LAMP.get(),RenderType.translucent());
ItemBlockRenderTypes.setRenderLayer(Registration.LIGHTSTONE_TORCH.get(),RenderType.translucent());
ItemBlockRenderTypes.setRenderLayer(Registration.WALL_LIGHTSTONE_TORCH.get(),RenderType.translucent());
ItemBlockRenderTypes.setRenderLayer(Registration.LIGHTSTONE_REFINED_TORCH.get(),RenderType.translucent());
ItemBlockRenderTypes.setRenderLayer(Registration.WALL_LIGHTSTONE_REFINED_TORCH.get(),RenderType.translucent());
}
}