HexMod icon indicating copy to clipboard operation
HexMod copied to clipboard

Blocky Chroniclers

Open SamsTheNerd opened this issue 1 year ago • 1 comments

Allows chroniclers to read/write blocks.

Blocks can opt in in three ways.

  1. implement ADIotaProvider on a Block Entity class.
  2. implement IBlockyIotaProvider on a Block class.
  3. manually register with HexAPI#registerBlockyIotaHolder

Option 1 will likely work best in most cases (since data is generally stored in a block entity), but option 2 is good for static reading or for reading that only depends on the environment (like akashic record). Finally, option 3 is provided for cases where you can't implement an interface, such as for another mod's block or for optional hex interop.

SamsTheNerd avatar Nov 25 '24 02:11 SamsTheNerd

I believe Petra was opposed to this?

SamsTheNerd avatar Feb 03 '25 20:02 SamsTheNerd

Moved to https://github.com/object-Object/IoticBlocks since Petra doesn't want it in the base mod.

object-Object avatar Apr 18 '25 18:04 object-Object