I wasn't able to check the forums yesterday, sorry.
I agree. Maintaining the older versions would become too much of a hassle.
I personally like that as well.
I'm having trouble visualizing how block manipulation would happen. Would we return strings to specify a block type? What happens when two plugins register a type of the same name?
xoft Wrote:Personally, I think cutting away the old version support is the way to go ..
I agree. Maintaining the older versions would become too much of a hassle.
xoft Wrote:... Use BlockArea instances for everything. ...If I'm completely honest I was surprised cBlockArea wasn't used for it already. What were the reasons for not unifying them before?
xoft Wrote:... Personally, I like the Java-like style with membership prefixes ...I've been programming C# for years now which has the following convention: ClassName, MethodName, _fieldName, argumentName, localVariable
I personally like that as well.
xoft Wrote:Concerning block types: Right now we have a fixed set of known blocks (E_BLOCK_...) and there's no way for plugins to add new blocks. With the 1.13 rewrite, we could have a "Block type registry" where block types would get registered together with their properties (need to find out what properties to track), so there's only a small additional step to allow plugins to register their custom block types in the registry as well. Once we have the registry, we'll have all the pieces missing - we already have ways for plugins to register callbacks, and we have callbacks capable of being unloaded. A similar approach will be needed for item types.This is something I wanted years ago because I wanted to recreate a bukkit plugin If it would be possible I'm all for it!
xoft Wrote:... This could even be gradual - first implement only 32-bit numbers ...Would it be possible to dynamically change the size? For example if only 100 blocks are registered we could change all the numbers to 8 bit numbers, but if they use more we'd automagically use more bits.
I'm having trouble visualizing how block manipulation would happen. Would we return strings to specify a block type? What happens when two plugins register a type of the same name?