mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-23 21:39:46 +00:00
Initial commit
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user