I am trying to give a the furnace GUI to a mob, but am finding it really hard. I have looked inside of the villager code to try and figure out what I can do, but I just can't seem to find a method that will work!
Thanks in advance.
Latest News Article
Curse Presents: "Can You Minecraft IRL?"
The latest episode in the "Can You Do This IRL?" series, presented by Alienware, is here! Checkout Jess and James' visit to Legoland to see what it's like to Minecraft IRL. They get an exclusive interview with the Master Builder at ...
Snapshot 13w25a Full of Bugfixes!
Snapshot 13w24b needed some revisions, so let's hear it for Snapshot 13w25a! This quick-fix Snapshot is chock-full of awesome fixes, so let's not waste any time!
BUG FIXES AHOY!
3D Anaglyph biome color corruptionIncorrect/inconsisten...
Community Creations - "Go Get Building" A Parody of Pitbull's Feel this Moment
Continuing the fine tradition of parody songs, today we bring you "Go Get Building", a parody song of Pitbull and Christina Aguilera's "Feel This Moment"! This parody video - created by AnEpicPlayerName, XenocidesRS, hojjoshMC...
5 replies to this topic
#3
Posted 16 November 2012 - 04:36 AM
From my very quick look into the source code, it looks like you are going to want to override the interact() method for your Entity. It is the method called when you right click a mob. I would suggest looking at the interact() method from EntityCow for further advice...
-- CN --
What'd you expect from Notch? Jesus walking on water?
What'd you expect from Notch? Jesus walking on water?
#4
Posted 16 November 2012 - 08:46 PM
CertainlyNot, on 16 November 2012 - 04:36 AM, said:
From my very quick look into the source code, it looks like you are going to want to override the interact() method for your Entity. It is the method called when you right click a mob. I would suggest looking at the interact() method from EntityCow for further advice...
public boolean interact(EntityPlayer par1EntityPlayer)
{
{
par1EntityPlayer.displayGUIFurnace(this);
}
return true;
}
private static boolean keepInventory = false;
Error is "The method displayGUIFurnace(TileEntityFurnace) in the type EntityPlayer is not applicable for the arguments (EntityBMO)"Is there something I can do?
#5
Posted 17 November 2012 - 12:13 AM
CraftMuch, on 16 November 2012 - 08:46 PM, said:
Here's my code Im having some errors:
Is there something I can do?
public boolean interact(EntityPlayer par1EntityPlayer)
{
{
par1EntityPlayer.displayGUIFurnace(this);
}
return true;
}
private static boolean keepInventory = false;
Error is "The method displayGUIFurnace(TileEntityFurnace) in the type EntityPlayer is not applicable for the arguments (EntityBMO)"Is there something I can do?
#6
Posted 17 November 2012 - 11:22 AM
Anglican, on 17 November 2012 - 12:13 AM, said:
Ah. First off, the par1EntityPlayer.displayGUIFurnace(this) should be par1EntityPlayer.displayGUIFurnace(par1EntityPlayer). It's attempting to run the method displayGUIFurnace(EntityBMO). Tell me if this works.
public boolean interact(EntityPlayer par1EntityPlayer)
{
{
par1EntityPlayer.displayGUIFurnace(par1EntityPlayer);
}
return true;
}
private static boolean keepInventory = false;
}
New ErrorThe method displayGUIFurnace(TileEntityFurnace) in the type EntityPlayer is not applicable for the arguments (EntityPlayer)










