BlockState breaking the API
#3
(03-11-2021, 09:43 PM)NiLSPACE Wrote: This might be a long shot, but can we replace all E_BLOCK_XYZ global variables to have a blockstate variable instead of the integer we have now? I'm not sure how we would handle nibbletypes with that though.

Something like this in manual bindings:
tolua_constant(tolua_S, "E_BLOCK_AIR", Block::Air::Air());
...

Actually the method

Block::Air::Air()

returns a short. so that might actually work for the present blocks
Reply
Thanks given by:


Messages In This Thread
BlockState breaking the API - by 12xx12 - 03-11-2021, 09:32 PM
RE: BlockState breaking the API - by NiLSPACE - 03-11-2021, 09:43 PM
RE: BlockState breaking the API - by 12xx12 - 03-11-2021, 10:06 PM
RE: BlockState breaking the API - by NiLSPACE - 03-11-2021, 10:13 PM



Users browsing this thread: 1 Guest(s)