Documentation

Form extends JsonSerializable

Form implementations must implement this interface to be able to utilize the Player form-sending mechanism.

There is no restriction on custom implementations other than that they must implement this.

Table of Contents

handleResponse()  : void
Handles a form response from a player.

Methods

handleResponse()

Handles a form response from a player.

public handleResponse(Player $player, mixed $data) : void
Parameters
$player : Player
$data : mixed
Tags
throws
FormValidationException

if the data could not be processed

Return values
void

Search results