Summary
Add support for PacketBlock.close()
Problem This Solves
This allows the user to write code like this:
import lombok.Cleanup;
@Cleanup PacketBlock block = blockManager.createBlock(location, Material.OAK_SIGN.createBlockData());
or also using try statements
Proposed Solution
Make PacketBlock implement AutoCloseable
Alternatives Considered
No response
Additional Context
No response
Priority
Low – nice to have
Summary
Add support for
PacketBlock.close()Problem This Solves
This allows the user to write code like this:
or also using try statements
Proposed Solution
Make
PacketBlockimplementAutoCloseableAlternatives Considered
No response
Additional Context
No response
Priority
Low – nice to have