mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Tidy up the magic glow layer
This commit is contained in:
parent
5697a92643
commit
dcd2442442
1 changed files with 9 additions and 8 deletions
|
@ -5,17 +5,18 @@ import net.minecraft.client.render.RenderPhase;
|
|||
import net.minecraft.client.render.VertexFormats;
|
||||
|
||||
public class MagicGlow extends RenderPhase {
|
||||
|
||||
public MagicGlow(String name, Runnable beginAction, Runnable endAction) {
|
||||
private MagicGlow(String name, Runnable beginAction, Runnable endAction) {
|
||||
super(name, beginAction, endAction);
|
||||
}
|
||||
|
||||
public static RenderLayer getRenderLayer() {
|
||||
return RenderLayer.method_24048("mlp_magic_glow", VertexFormats.POSITION_COLOR_TEXTURE_LIGHT_NORMAL, 7, 256, RenderLayer.MultiPhaseData.builder()
|
||||
static final RenderLayer MAGIC = RenderLayer.method_24048("mlp_magic_glow", VertexFormats.POSITION_COLOR_TEXTURE_LIGHT_NORMAL, 7, 256, RenderLayer.MultiPhaseData.builder()
|
||||
.texture(NO_TEXTURE)
|
||||
.transparency(TRANSLUCENT_TRANSPARENCY)
|
||||
.lightmap(DISABLE_LIGHTMAP)
|
||||
.cull(DISABLE_CULLING)
|
||||
.build(false));
|
||||
|
||||
public static RenderLayer getRenderLayer() {
|
||||
return MAGIC;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue