SHOW:
|
|
- or go back to the newest paste.
| 1 | package com.kenjinful.main.handler; | |
| 2 | ||
| 3 | import com.kenjinful.main.gui.CATGUI; | |
| 4 | ||
| 5 | import net.minecraft.entity.player.EntityPlayer; | |
| 6 | import net.minecraft.world.World; | |
| 7 | import net.minecraftforge.fml.common.network.IGuiHandler; | |
| 8 | ||
| 9 | public class GUIHandler implements IGuiHandler {
| |
| 10 | ||
| 11 | public static final int CAT_GUI = 0; | |
| 12 | ||
| 13 | @Override | |
| 14 | public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
| |
| 15 | return null; | |
| 16 | } | |
| 17 | ||
| 18 | @Override | |
| 19 | public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
| |
| 20 | if (ID == CAT_GUI) {
| |
| 21 | return new CATGUI(); | |
| 22 | } | |
| 23 | ||
| 24 | ||
| 25 | return null; | |
| 26 | } | |
| 27 | } |