2022-08-23 12:29:59 +08:00
|
|
|
package com.gtnewhorizon.structurelib;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
2025-04-30 21:55:19 +08:00
|
|
|
import com.gtnewhorizon.structurelib.gui.EmptyContainer;
|
2022-08-23 12:29:59 +08:00
|
|
|
import com.gtnewhorizon.structurelib.gui.GuiScreenConfigureChannels;
|
2024-01-09 03:42:10 +00:00
|
|
|
|
2022-08-23 12:29:59 +08:00
|
|
|
import cpw.mods.fml.common.network.IGuiHandler;
|
2023-01-30 12:52:27 +00:00
|
|
|
|
2022-08-23 12:29:59 +08:00
|
|
|
public class GuiHandler implements IGuiHandler {
|
2023-01-30 12:52:27 +00:00
|
|
|
|
2022-08-23 12:29:59 +08:00
|
|
|
@Override
|
|
|
|
|
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
2025-04-30 21:55:19 +08:00
|
|
|
switch (ID) {
|
|
|
|
|
case 0:
|
|
|
|
|
return new EmptyContainer(player);
|
|
|
|
|
default:
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2022-08-23 12:29:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
|
|
|
|
switch (ID) {
|
|
|
|
|
case 0:
|
2025-04-30 21:55:19 +08:00
|
|
|
return new GuiScreenConfigureChannels(new EmptyContainer(player), player.inventory.getStackInSlot(x));
|
2022-08-23 12:29:59 +08:00
|
|
|
default:
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|