Posted October 20, 201212 yr java.lang.ClassCastException: gokimods.xpstorage.client.GuiXPStorage cannot be cast to net.minecraft.src.Container at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:302) The function getServerGuiElement allows to take in a GuiScreen or Container (as expressed by the documentation) but openRemoteGui will throw the above error if it's not a Container. Why is this the case? http://www.minecraftforum.net/topic/1522738-132-forge-425-gokimods/
October 20, 201212 yr Because you're calling the server side of the gui code.. there are no Gui classes on the server, just Containers. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
October 20, 201212 yr Author So I can't make a server side TileEntity that isn't a container, then? If I have a Tile that has nothing to do with inventory, I still need to extend a Container? http://www.minecraftforum.net/topic/1522738-132-forge-425-gokimods/
October 21, 201212 yr Only open the gui client side if it doesnt need to talk to the server, Guis server side are inventories, so you'd have to deal with that or figure out how you wanna deal with your stuff properly. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
October 21, 201212 yr Author I think I can work with that. Thanks. http://www.minecraftforum.net/topic/1522738-132-forge-425-gokimods/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.