blob: 9df2179b711b9524c552065da4cad221d7c71389 (
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
43
44
45
46
47
|
package detrav.proxies;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
import detrav.events.DetravLoginEventHandler;
import detrav.gui.DetravScannerGUI;
/**
* 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) {
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) {
}
}
|