1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 12:10:30 +00:00
CC-Tweaked/projects/common/src
Jonathan Coates 8360e8234d
Post multi-loader cleanup
This commit got away from me, okay? No, I'm not proud of it either.

 - Remove our overrides of handleUpdate tag: we now try to detect
   whether we're on the client or server inside BlockEntity.load. Alas,
   this is needed for Fabric.

 - Remove BlockGeneric/TileGeneric entirely: we've slowly whittled this
   down over the years, and nowadays we can get away with putting most
   of its functionality into subclasses.

   This allows us to do some nice things with overriding HorizontalBlock
   (or our new HorizontalContainerBlock class), rather than
   reimplementing functionality in each class. Though it would be nice
   if Java had some sort of trait system :D:

 - Simplify a lot of our container class so it's just defined in terms
   of a NonNullList<ItemStack>. This also includes a total rewrite of
   the disk drive which I'm not ... thrilled about. It ended up being
   easier to copy the code from the mc-next branch :D:.

 - Try to test some of the gnarly bits of this. Still a /lot/ more to be
   done with testing this.

Closes #658
2022-11-10 15:55:34 +00:00
..
client/java/dan200/computercraft/client Post multi-loader cleanup 2022-11-10 15:55:34 +00:00
main Post multi-loader cleanup 2022-11-10 15:55:34 +00:00
test/java/dan200/computercraft Split CC:T into common and forge projects 2022-11-10 08:54:09 +00:00
testFixtures/java/dan200/computercraft/test/shared Post multi-loader cleanup 2022-11-10 15:55:34 +00:00
testMod Post multi-loader cleanup 2022-11-10 15:55:34 +00:00