Files
StructureLib/src/main/java/com/gtnewhorizon/structurelib/GuiHandler.java
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
973 B
Java
Raw Normal View History

2022-08-23 12:29:59 +08:00
package com.gtnewhorizon.structurelib;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
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;
2022-08-23 12:29:59 +08:00
public class GuiHandler implements IGuiHandler {
2022-08-23 12:29:59 +08:00
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
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:
return new GuiScreenConfigureChannels(new EmptyContainer(player), player.inventory.getStackInSlot(x));
2022-08-23 12:29:59 +08:00
default:
return null;
}
}
}