-
-
Save JayZX535/641f0862daa060dccf30015d77bbc212 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.wildcraft.wildcraft.client.gui; | |
import com.wildcraft.wildcraft.container.ContainerFoodDish; | |
import com.wildcraft.wildcraft.tileentity.TileEntityFoodDish; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.util.math.BlockPos; | |
import net.minecraft.world.World; | |
import net.minecraftforge.fml.common.network.IGuiHandler; | |
public class GUIHandler implements IGuiHandler{ | |
public static final int FOOD_DISH = 0; | |
@Override | |
public Object getServerGuiElement(int ID, EntityPlayer player, World world,int x, int y, int z) { | |
if (ID == FOOD_DISH) | |
{ | |
return new ContainerFoodDish(player.inventory, (TileEntityFoodDish) world.getTileEntity(new BlockPos(x, y, z))); | |
} | |
return null; | |
} | |
@Override | |
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { | |
if (ID == FOOD_DISH) | |
{ | |
return new GUIFoodDish(player.inventory, (TileEntityFoodDish) world.getTileEntity(new BlockPos(x, y, z))); | |
} | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment