Posted March 6, 20214 yr 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
March 7, 20214 yr Author What do you mean by "On the server you create your container in INamedContainerProvider"?
March 7, 20214 yr Author 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
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.