Closed BluXDragon closed 11 years ago
The thing is, ComplexBlock corresponds to Minecraft's TileEntities. It would be overly expensive to have entire TileEntities on every single button and lever, so I don't think Metadata would be viable for these. However, we could break up ComplexBlock a little bit to allow for non-tile entities.
I see. That's fine, the getAttachedBlock() and trigger/status methods would make me happy :P Now that I think about it, getAttachedBlock() would be nice for a lot of things, like torch/redstonetorch.
I'd enjoy being able to toggle/set/activate levers and buttons without using some pretty annoying to find Notchian. I would also like to be able to put Metadata in these blocks, and making a ComplexBlock out of them would make this possible, as far as I know.
Methods would be things like; Block getAttachedBlock(); void trigger(); //pushes the button or toggles the lever void setStatus(); //Sets whether it is on or off (probably lever only, although I think it's possible to "lock in buttons".
No need for a getMaterial() method for button, since you could do that just by getting the block and checking the ID.
That's about it really.