
PacketBlocks
A lightweight Spigot/Paper library for creating and managing client-side, packet-based Minecraft blocks.
Список изменений
📦 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:
BlockBreakAdapterBlockPlaceAdapterBlockUpdateAdapterChunkLoadAdapter
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:
PacketBlockStartBreakEventPacketBlockBreakEventPacketBlockInteractEvent
Event consumers can now determine whether an interaction applies to:
- A single block
- A block group
