Posted June 5, 20169 yr Hey All, I have a custom chest in my mod and I have overridden getDisplayName() to return my own name. This custom string shows for a single chest, but whenever I have a large chest, its still displaying the vanilla chest name. I've looked all through guiHandler, guiChest, containerChest and I can't find where it swaps up a different name for a large chest, heck guiChest looks like it just straight up calls the normal getDisplayName. what do I need to override to change the name in the large chest inventory? Check out my Mod: The RPCraft Toolkit!
June 5, 20169 yr Author Found It! It's in BlockChest.getLockableContainer(), it sets the displayname of the LargeInventory when it returns it. You have to override it and just switch the name it passes. Check out my Mod: The RPCraft Toolkit!
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.