aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/detrav/proxies/CommonProxy.java
blob: 712960ffd117a845fe029b2f5370d1013ac0f57f (plain)
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
package detrav.proxies;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

import cpw.mods.fml.common.network.IGuiHandler;
import detrav.gui.DetravScannerGUI;

/**
 * Created by wital_000 on 19.03.2016.
 */
public class CommonProxy implements IGuiHandler {

    public void onLoad() {}

    public void onPostLoad() {}

    @Override
    public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
        return null;
    }

    @Override
    public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
        if (ID == DetravScannerGUI.GUI_ID) {
            return new DetravScannerGUI();
        }
        return null;
    }

    public void openProspectorGUI() {
        // just Client code
    }

    public void onPreInit() {

    }

    public void sendPlayerExeption(String s) {

    }
}