Cables work

This commit is contained in:
Sebastian Hartte
2020-07-02 10:16:03 +02:00
parent c7b1ab756b
commit 75234415ac
10 changed files with 198 additions and 210 deletions
@@ -24,6 +24,7 @@ import net.fabricmc.api.Environment;
import appeng.bootstrap.BlockRenderingCustomizer;
import appeng.bootstrap.IBlockRendering;
import appeng.bootstrap.IItemRendering;
import net.minecraft.client.render.RenderLayer;
/**
* Customizes the rendering behavior for cable busses, which are the biggest
@@ -36,6 +37,7 @@ public class CableBusRendering extends BlockRenderingCustomizer {
public void customize(IBlockRendering rendering, IItemRendering itemRendering) {
// FIXME This is straight up impossible in Vanilla, and questionable if it's actually needed.
// FIXME rendering.renderType(rt -> true);
rendering.renderType(RenderLayer.getCutout());
rendering.blockColor(new CableBusColor());
rendering.modelCustomizer((loc, model) -> model);