Jump to content

TileEntity not rendering


OmgImAlexis

Recommended Posts

So, I've been following a tutorial on how to add power and pipes into the game and once I get to adding the tile entities the block works but the textures won't appear on the blocks.

I have a feeling it's got something to do with the registerProxies method not being run inside of the ClientProxy but if I try and run it in the init method in the main file I get a null pointer exception and I'm not sure why it's returning that.

 

Here's the code.

Link to comment
Share on other sites

Could you point me to where I could find an answer to this like a part of the wiki that explains it or something because I can't seem to find anything at all on using the IProxy class and none of the youtube videos for 1.7.2 or 1.7.10 seem to say you need them even though they're doing stuff with tile entities. The only reason I even have a class that implements it is because a single tutorial I found said that you needed it at the start.

Link to comment
Share on other sites

I am on a mobile device some navigating your code is difficult right now however I do not see where you called your proxy methods and I also had a similar issue but I was calling the registrations in the proxy methods before registering my items. Make sure you register the icons after registering the items if that makes sense.

I'll need help, and I'll give help. Just ask, you know I will!

Link to comment
Share on other sites

Exactly. if I am not mistaken your iproxy and commonproxy are both a waste, and your client proxy can simply extend your server proxy. Then you can call the method in your serverproxy after registering the items, and you should be all set, or at least on your way!

I'll need help, and I'll give help. Just ask, you know I will!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.