hidePacketHandler

open fun hidePacketHandler(@NotNull hidePacketHandler: @NotNull Consumer<PacketBundler>)

Adds a handler invoked when hide packets are bundled for a player.

Additional handlers are executed sequentially via andThen.


pipeline.hidePacketHandler(bundler -> {
    // append custom packets when model is hidden
});

Since

1.15.2

Parameters

hidePacketHandler

the consumer to handle hide packets

Throws

if hidePacketHandler is null