DimensionType effects are contained in ClientLevel#effects so we need to modify it instead of modifying actual DimensionType
Removed implements LevelBridge from ClientLevelMixin because LevelMixin already implements it
BookItemStackData:
Don't know if we want to expose WrittenBookContent or keep current keys but for now I just made it working with current stuff
BookUtil:
There is no more need to manually localize book content because it's done on client
bookSlot was changed from inventory.items.size() + inventory.selected to inventory.selected and container id was changed from 0 to -2 because the only reason it works now is that (picture) size of red area (inventoryMenu indexing) luckily equals to size of blue area (inventory.items.size()). -2 stands for Player#inventory and first 9 items in it is hotbar
Viewer#sendWorldType():
ClientLevel#effects
so we need to modify it instead of modifying actual DimensionTypeimplements LevelBridge
fromClientLevelMixin
becauseLevelMixin
already implements itBookItemStackData:
WrittenBookContent
or keep current keys but for now I just made it working with current stuffBookUtil:
bookSlot
was changed frominventory.items.size() + inventory.selected
toinventory.selected
and container id was changed from0
to-2
because the only reason it works now is that (picture) size of red area (inventoryMenu
indexing) luckily equals to size of blue area (inventory.items.size()
).-2
stands forPlayer#inventory
and first 9 items in it is hotbar