BeardlessBrady Posted March 6, 2021 Share Posted March 6, 2021 I got the new way of registering things working. I want to send the tile entity through my container so I have access to the BlockPos in the container (for sending packets). I'm just not sure how, if I add the tile to the constructor of the container how do I add the tile to the register? https://github.com/Beardlessbrady/Currency-Mod/blob/master-1.16/src/main/java/com/beardlessbrady/gocurrency/init/CommonRegistry.java Quote Link to comment Share on other sites More sharing options...
BeardlessBrady Posted March 7, 2021 Author Share Posted March 7, 2021 What do you mean by "On the server you create your container in INamedContainerProvider"? Quote Link to comment Share on other sites More sharing options...
BeardlessBrady Posted March 7, 2021 Author Share Posted March 7, 2021 Ok that makes sense. Last question: What format do I include data into the packetBuffer for the client? For instance if I want to include the BlockPos? https://github.com/Beardlessbrady/Currency-Mod/blob/master-1.16/src/main/java/com/beardlessbrady/gocurrency/blocks/vending/VendingBlock.java#L51-L52 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.