showPacketHandler

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

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

Additional handlers are executed sequentially via andThen.


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

Since

1.15.2

Parameters

showPacketHandler

the consumer to handle show packets

Throws

if showPacketHandler is null