| package mekanism.common.base; |
| |
| import net.minecraft.entity.player.EntityPlayer; |
| import net.minecraft.inventory.Container; |
| import net.minecraft.util.BlockPos; |
| import net.minecraft.world.World; |
| |
| public interface IGuiProvider |
| { |
| /** |
| * Get the container for a GUI. Common. |
| * @param ID - gui ID |
| * @param player - player that opened the GUI |
| * @param world - world the GUI was opened in |
| * @param pos - gui's position |
| * @return the Container of the GUI |
| */ |
| public Container getServerGui(int ID, EntityPlayer player, World world, BlockPos pos); |
| |
| /** |
| * Get the actual interface for a GUI. Client-only. |
| * @param ID - gui ID |
| * @param player - player that opened the GUI |
| * @param world - world the GUI was opened in |
| * @param pos - gui's position |
| * @return the GuiScreen of the GUI |
| */ |
| public Object getClientGui(int ID, EntityPlayer player, World world, BlockPos pos); |
| } |