Class DelayedCommandInputRequest<T>

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.util.delayedinput.DelayedInputRequest<T>
nl.pim16aap2.animatedarchitecture.core.commands.DelayedCommandInputRequest<T>
Type Parameters:
T - The type of data that is to be retrieved from the player.

public final class DelayedCommandInputRequest<T> extends DelayedInputRequest<T>
Represents a request for delayed additional input for a command.

Taking the AddOwner command as an example, it could be initialized using a GUI, in which case it is known who the ICommandSender is and what the target Structure is. However, for some GUIs (e.g. Spigot), it is not yet known who the target player is and what the desired permission level is. This class can then be used to retrieve the additional data that is required to execute the command.

This class manages the lifecycle of delayed command input, including registration with the DelayedCommandInputManager, sending appropriate messages to the command sender, handling timeouts, and executing the command once input is received.