mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-15 09:34:44 +00:00
Basic bee ring start.
This commit is contained in:
1 parent
bdb7a53b96
commit
951df8a632
10 files changed
+429
-23
No files matched your search
@@ -1,12 +1,15 @@
|
||||
package magicbees.client.gui;
|
||||
|
||||
import magicbees.item.ItemBeeRing;
|
||||
import magicbees.tileentity.TileEntityEffectJar;
|
||||
import magicbees.tileentity.TileEntityMagicApiary;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import cpw.mods.fml.common.network.IGuiHandler;
|
||||
import scala.swing.Applet;
|
||||
|
||||
public class GUIHandler implements IGuiHandler {
|
||||
|
||||
@@ -19,6 +22,8 @@ public class GUIHandler implements IGuiHandler {
|
||||
} else if (ID == UIScreens.THAUMIC_APIARY.ordinal()) {
|
||||
TileEntityMagicApiary tileEntityThaumicApiary = (TileEntityMagicApiary) world.getTileEntity(x, y, z);
|
||||
value = new ContainerMagicApiary(player.inventory, tileEntityThaumicApiary);
|
||||
} else if (ID == UIScreens.EFFECT_RING.ordinal()) {
|
||||
value = new ContainerEffectRing(ItemBeeRing.getInventory(player, player.getHeldItem()),player);
|
||||
}
|
||||
|
||||
return value;
|
||||
@@ -31,8 +36,9 @@ public class GUIHandler implements IGuiHandler {
|
||||
} else if (ID == UIScreens.THAUMIC_APIARY.ordinal()) {
|
||||
TileEntityMagicApiary tileEntityThaumicApiary = (TileEntityMagicApiary) world.getTileEntity(x, y, z);
|
||||
return new GuiMagicApiary(player.inventory, tileEntityThaumicApiary);
|
||||
} else {
|
||||
return null;
|
||||
} else if (ID == UIScreens.EFFECT_RING.ordinal()) {
|
||||
return new GUIEffectRing(player.getHeldItem() ,player);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user