PacketConstructService
Owns temporary packet-only block constructs without changing the world.
A single reconciler handles fixed and moving layouts, viewer range, overlapping casts and exact restoration. Removing a top construct reveals any active construct below it; removing the final layer sends the viewer the world's current block data. No operation loads a chunk.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Optional<PacketConstructService.Handle> spawn(Player owner, Location anchor, PacketConstructDefinition definition, int durationTicks)
public Optional<PacketConstructService.Handle> spawn(Player owner, Location anchor, PacketConstructDefinition definition, int durationTicks, Consumer<UUID> onRemoved)
Link copied to clipboard
public Optional<PacketConstructService.Handle> spawnFollowing(Player owner, Supplier<Location> anchor, PacketConstructDefinition definition, int durationTicks)
public Optional<PacketConstructService.Handle> spawnFollowing(Player owner, Supplier<Location> anchor, PacketConstructDefinition definition, int durationTicks, Consumer<UUID> onRemoved)