calclavia Posted May 6, 2012 Posted May 6, 2012 Does anyone know how to create a different tile entity for a metadata block? http://calclavia.com/uploads/banner.png[/img]
OvermindDL1 Posted May 7, 2012 Posted May 7, 2012 The function where you return your tileentity instance (getTileEntity or something like that?) has a metadata version.
calclavia Posted May 7, 2012 Author Posted May 7, 2012 I am using the getTileEntity (int metadata) function now. Thanks. But the getTileEntity () function is abstract and I have to use it. What would I return in that function? http://calclavia.com/uploads/banner.png[/img]
OvermindDL1 Posted May 7, 2012 Posted May 7, 2012 On 5/7/2012 at 10:22 AM, calclavia said: I am using the getTileEntity (int metadata) function now. Thanks. But the getTileEntity () function is abstract and I have to use it. What would I return in that function? I see no getTileEntity() function in block. Are you subclassing from BlockContainer? If so then do not subclass from BlockContainer.
calclavia Posted May 7, 2012 Author Posted May 7, 2012 Oh yes! I was using the Block Container. Should I never use this class? I basically lookeed at the furnace block and copied the stuff inside. But using the Block class should give the same results right? http://calclavia.com/uploads/banner.png[/img]
calclavia Posted May 9, 2012 Author Posted May 9, 2012 I returned null and it works. I have to use a Block Container or else the GUI won't open. http://calclavia.com/uploads/banner.png[/img]
OvermindDL1 Posted May 10, 2012 Posted May 10, 2012 On 5/9/2012 at 2:10 AM, calclavia said: I returned null and it works. I have to use a Block Container or else the GUI won't open. For note, Forge can open a GUI from anywhere and from any action, you do not need BlockContainer.
Recommended Posts