Initial commit

This commit is contained in:
Azanor committed 2014-03-31 10:36:27 +02:00
commit e37de23340
41 files changed
+2123

No files matched your search

@@ -0,0 +1,41 @@
package baubles.client;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import baubles.client.gui.GuiPlayerExpanded;
import baubles.common.Baubles;
import baubles.common.CommonProxy;
import baubles.common.event.KeyHandler;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.common.FMLCommonHandler;
public class ClientProxy extends CommonProxy {
@Override
public void registerHandlers() {}
@Override
public void registerKeyBindings() {
keyHandler = new KeyHandler();
FMLCommonHandler.instance().bus().register(keyHandler);
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
if (world instanceof WorldClient) {
switch (ID) {
case Baubles.GUI: return new GuiPlayerExpanded(player);
}
}
return null;
}
@Override
public World getClientWorld() {
return FMLClientHandler.instance().getClient().theWorld;
}
}