Changes

No change in size ,  03:29, 10 January 2022
m
Line 24: Line 24:     
== 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> ==
1

edit