-
Notifications
You must be signed in to change notification settings - Fork 497
/
BuilderProxyClient.java
72 lines (59 loc) · 2.76 KB
/
BuilderProxyClient.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* Copyright (c) 2011-2015, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.builders;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import buildcraft.BuildCraftBuilders;
import buildcraft.builders.urbanism.TileUrbanist;
import buildcraft.core.lib.EntityBlock;
import buildcraft.core.lib.render.RenderMultiTESR;
import buildcraft.core.lib.render.RenderVoid;
import buildcraft.core.render.RenderBoxProvider;
import buildcraft.core.render.RenderBuilder;
import buildcraft.builders.render.RenderBuilderTile;
import buildcraft.core.render.RenderLEDTile;
public class BuilderProxyClient extends BuilderProxy {
public static IIcon drillTexture;
public static IIcon drillHeadTexture;
@Override
public void registerClientHook() {
}
@Override
public void registerBlockRenderers() {
super.registerBlockRenderers();
ClientRegistry.bindTileEntitySpecialRenderer(TileUrbanist.class, new RenderBoxProvider());
ClientRegistry.bindTileEntitySpecialRenderer(TileArchitect.class, new RenderArchitect());
ClientRegistry.bindTileEntitySpecialRenderer(TileFiller.class, new RenderBuilder());
ClientRegistry.bindTileEntitySpecialRenderer(TileBuilder.class, new RenderBuilderTile());
ClientRegistry.bindTileEntitySpecialRenderer(TilePathMarker.class, new RenderPathMarker());
ClientRegistry.bindTileEntitySpecialRenderer(TileConstructionMarker.class, new RenderConstructionMarker());
ClientRegistry.bindTileEntitySpecialRenderer(TileArchitect.class, new RenderLEDTile(BuildCraftBuilders.architectBlock));
ClientRegistry.bindTileEntitySpecialRenderer(TileFiller.class, new RenderLEDTile(BuildCraftBuilders.fillerBlock));
ClientRegistry.bindTileEntitySpecialRenderer(TileQuarry.class, new RenderMultiTESR(new TileEntitySpecialRenderer[] {
new RenderLEDTile(BuildCraftBuilders.quarryBlock),
new RenderBuilder()
}));
RenderingRegistry.registerEntityRenderingHandler(EntityMechanicalArm.class, new RenderVoid());
}
@Override
public EntityBlock newDrill(World w, double i, double j, double k, double l, double d, double e) {
EntityBlock eb = super.newDrill(w, i, j, k, l, d, e);
eb.texture = drillTexture;
return eb;
}
@Override
public EntityBlock newDrillHead(World w, double i, double j, double k, double l, double d, double e) {
EntityBlock eb = super.newDrillHead(w, i, j, k, l, d, e);
eb.texture = drillHeadTexture;
return eb;
}
}