Fully Fleshed out Functionality and GUI. Having some small issues with the paritcleFX, but not huge deal right now. Would be nice to have, but crashes make people even sadder.

This commit is contained in:
rjnasers committed 2023-04-26 15:11:53 -05:00
1 parent e5cea4e3dd
commit 729908b1b0
6 files changed
+542 -82

No files matched your search

@@ -1,16 +1,13 @@
package magicbees.client.gui;
import magicbees.item.ItemBeeRing;
import magicbees.itemInventories.InventoryBeeRing;
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 {
@@ -24,7 +21,9 @@ public class GUIHandler implements IGuiHandler {
TileEntityMagicApiary tileEntityThaumicApiary = (TileEntityMagicApiary) world.getTileEntity(x, y, z);
value = new ContainerMagicApiary(player.inventory, tileEntityThaumicApiary);
} else if (ID == UIScreens.EFFECT_RING.ordinal()) {
value = new ContainerEffectRing((InventoryBeeRing) ItemBeeRing.getInventory(player, player.getHeldItem()),player);
value = new ContainerEffectRing(
ItemBeeRing.getInventory(player, player.getHeldItem(), player.inventory.currentItem, false),
player);
}
return value;
@@ -38,7 +37,7 @@ public class GUIHandler implements IGuiHandler {
TileEntityMagicApiary tileEntityThaumicApiary = (TileEntityMagicApiary) world.getTileEntity(x, y, z);
return new GuiMagicApiary(player.inventory, tileEntityThaumicApiary);
} else if (ID == UIScreens.EFFECT_RING.ordinal()) {
return new GUIEffectRing(player.getHeldItem() ,player);
return new GUIEffectRing(player.getHeldItem(), player);
}
return null;
}