PacketConstructService

public final class PacketConstructService implements Listener, AutoCloseable

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.

Constructors

Link copied to clipboard
public void PacketConstructService(Plugin plugin)

Types

Link copied to clipboard
public interface Handle implements AutoCloseable

Functions

Link copied to clipboard
public void close()
Link copied to clipboard
public void deactivate(UUID ownerId)
public void deactivate(Player owner)
Link copied to clipboard
public void onDeath(PlayerDeathEvent event)
Link copied to clipboard
public void onQuit(PlayerQuitEvent event)
Link copied to clipboard
public void onWorldChange(PlayerChangedWorldEvent event)
Link copied to clipboard
public void onWorldUnload(WorldUnloadEvent event)
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)