1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-01-30 07:20:16 +00:00

Initial attempt at improving cable/wired modem interactions

- Cable and modem can be broken individually
 - Ray tracing will go through "holes" in the cable.
 - Pick block will determine which part you are looking at.
 - Selection box will only highlight the region you are looking at:
   modem or cable.
This commit is contained in:
SquidDev
2017-05-09 23:03:42 +01:00
parent 19e4c03d3a
commit 728644c104
6 changed files with 385 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ package dan200.computercraft.client.proxy;
import dan200.computercraft.ComputerCraft;
import dan200.computercraft.client.gui.*;
import dan200.computercraft.client.render.RenderOverlayCable;
import dan200.computercraft.client.render.TileEntityMonitorRenderer;
import dan200.computercraft.shared.computer.blocks.ComputerState;
import dan200.computercraft.shared.computer.blocks.TileComputer;
@@ -442,6 +443,7 @@ public class ComputerCraftProxyClient extends ComputerCraftProxyCommon
{
ForgeHandlers handlers = new ForgeHandlers();
MinecraftForge.EVENT_BUS.register( handlers );
MinecraftForge.EVENT_BUS.register( new RenderOverlayCable() );
}
public class ForgeHandlers