== Attaching a <code>BlockEntity</code> to a <code>Block</code> ==
== Attaching a <code>BlockEntity</code> to a <code>Block</code> ==
−
To attach your new <code>BlockEntity</code> to a <code>Block</code>, the <code>EntityBlock</code> interface must be implemented on your <code>Block</code> subclass. The method <code>EntityBlock#newBlockEntity(BlockPos, BlockState)</code> must be implemented and return a new isntance of your <code>BlockEntity</code>.
+
To attach your new <code>BlockEntity</code> to a <code>Block</code>, the <code>EntityBlock</code> interface must be implemented on your <code>Block</code> subclass. The method <code>EntityBlock#newBlockEntity(BlockPos, BlockState)</code> must be implemented and return a new instance of your <code>BlockEntity</code>.
== Storing Data within your <code>BlockEntity</code> ==
== Storing Data within your <code>BlockEntity</code> ==