summaryrefslogtreecommitdiff
path: root/src/main/java/gmail/Lance5057/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gmail/Lance5057/proxy')
-rw-r--r--src/main/java/gmail/Lance5057/proxy/ClientProxy.java36
-rw-r--r--src/main/java/gmail/Lance5057/proxy/CommonProxy.java21
2 files changed, 57 insertions, 0 deletions
diff --git a/src/main/java/gmail/Lance5057/proxy/ClientProxy.java b/src/main/java/gmail/Lance5057/proxy/ClientProxy.java
new file mode 100644
index 0000000..db933ea
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/proxy/ClientProxy.java
@@ -0,0 +1,36 @@
+package gmail.Lance5057.proxy;
+
+import gmail.Lance5057.blocks.Renderer_CrestMount;
+import gmail.Lance5057.blocks.TileEntity_CrestMount;
+import gmail.Lance5057.proxy.CommonProxy;
+import gmail.Lance5057.items.ModelTinkerArmor;
+import gmail.Lance5057.items.TinkerArmor;
+import net.minecraft.client.model.ModelBiped;
+import cpw.mods.fml.client.registry.ClientRegistry;
+
+
+public class ClientProxy extends CommonProxy {
+ private static final ModelTinkerArmor tutChest = new ModelTinkerArmor(1.0f);
+
+ @Override
+ public void registerRenderers() {
+ // This is for rendering entities and so forth later on
+ ClientRegistry.bindTileEntitySpecialRenderer(TileEntity_CrestMount.class, new Renderer_CrestMount());
+ }
+
+ public void registerTileEntitySpecialRenderer()
+ {
+
+ }
+ @Override
+ public ModelBiped getArmorModel(int id)
+ {
+ switch (id)
+ {
+ case 0: return tutChest;
+ default: break;
+ }
+ return tutChest; //default, if whenever you should have passed on a wrong id
+ }
+
+} \ No newline at end of file
diff --git a/src/main/java/gmail/Lance5057/proxy/CommonProxy.java b/src/main/java/gmail/Lance5057/proxy/CommonProxy.java
new file mode 100644
index 0000000..164bf21
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/proxy/CommonProxy.java
@@ -0,0 +1,21 @@
+package gmail.Lance5057.proxy;
+
+import net.minecraft.client.model.ModelBiped;
+
+public class CommonProxy {
+
+ // Client stuff
+ public void registerRenderers() {
+ // Nothing here as the server doesn't render graphics or entities!
+ }
+
+ public void registerTileEntitySpecialRenderer()
+ {
+
+ }
+
+ public ModelBiped getArmorModel(int id)
+ {
+ return null;
+ }
+} \ No newline at end of file