aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/detrav/proxies/CommonProxy.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/detrav/proxies/CommonProxy.java')
-rw-r--r--src/main/java/com/detrav/proxies/CommonProxy.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/main/java/com/detrav/proxies/CommonProxy.java b/src/main/java/com/detrav/proxies/CommonProxy.java
new file mode 100644
index 0000000000..62473ec4d7
--- /dev/null
+++ b/src/main/java/com/detrav/proxies/CommonProxy.java
@@ -0,0 +1,55 @@
+package com.detrav.proxies;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.world.World;
+
+import com.detrav.events.DetravLoginEventHandler;
+import com.detrav.gui.DetravScannerGUI;
+
+import cpw.mods.fml.common.network.IGuiHandler;
+
+/**
+ * Created by wital_000 on 19.03.2016.
+ */
+public class CommonProxy implements IGuiHandler {
+
+ public void onLoad() {
+
+ }
+
+ public void onPostLoad() {
+ DetravLoginEventHandler.register();
+ }
+
+ @Override
+ public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
+ switch (ID) {
+ case DetravScannerGUI.GUI_ID:
+ return null;
+ default:
+ return null;
+ }
+ }
+
+ @Override
+ public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
+ switch (ID) {
+ case DetravScannerGUI.GUI_ID:
+ return new DetravScannerGUI();
+ default:
+ return null;
+ }
+ }
+
+ public void openProspectorGUI() {
+ // just Client code
+ }
+
+ public void onPreInit() {
+
+ }
+
+ public void sendPlayerExeption(String s) {
+
+ }
+}