AzortisCode / Orbis

An opensource minecraft world generator for PaperMC & more
GNU Lesser General Public License v3.0
32 stars 0 forks source link

Block Entity System #4

Closed JakeNijssen closed 2 years ago

JakeNijssen commented 2 years ago

The creation of a Block-Entity system complementing the current block system. Would allow for full manipulation & creation of block entities to platforms.

Additional features that may be introduced with this PR are Inventories, Itemstacks, item meta data etc.

JakeNijssen commented 2 years ago

Rewrote the block system to contain a split between blocks and blockstates, this split ensures for less memory usage and overall more clear design. In the Block class an endpoint will be added to create block entities(Won't include all since some are obsolete like Beds) it will mostly consist of Containers, MobSpawner & Beehives etc.

This PR will also introduce the beginnings of an inventory system using Factory classes.

It will be considered done when a default Block entity system is finished, after that new drafts will be created like structures and making it all more functional.

JakeNijssen commented 2 years ago

Alright I'm opening this draft up for review, wanna focus on actual generation and come back to this later. But since this draft contains significant changes I wanna push it to the master branch for now.