Skip to content

1.2.0 Release - Packet Block Groups

Choose a tag to compare

@BitByLogics BitByLogics released this 22 Dec 09:18
· 19 commits to master since this release

πŸ“¦ PacketBlocks β€” 1.2.0 Release Notes

This release introduces grouped packet blocks, along with a substantial internal refactor to improve extensibility, clarity, and long-term maintainability.


πŸš€ New Features

βœ… Packet Block Groups

PacketBlocks now supports grouped blocks, allowing multiple packet blocks to behave as a single logical unit.

With PacketBlockGroup, you can:

  • Treat multiple blocks as one entity
  • Share metadata and state across a block cluster
  • Handle interactions (break, place, update) at the group level
  • Resolve BlockData dynamically per group

This enables more advanced structures such as multi-block machines, large custom blocks, or linked visual elements.

Group logic is implemented in
net.bitbylogic.packetblocks.group.PacketBlockGroup


πŸ”„ Group-Aware Packet Handling

Packet adapters have been updated to detect and respect block groups automatically:

  • BlockBreakAdapter
  • BlockPlaceAdapter
  • BlockUpdateAdapter
  • ChunkLoadAdapter

Each adapter now:

  • Detects whether a block belongs to a group
  • Resolves group-specific BlockData
  • Applies packet overrides consistently across the entire group

This ensures correct rendering and interaction behavior on the client.


🧩 Event Improvements

Existing events now support group context, including:

  • PacketBlockStartBreakEvent
  • PacketBlockBreakEvent
  • PacketBlockInteractEvent

Event consumers can now determine whether an interaction applies to:

  • A single block
  • A block group