Class Result
java.lang.Object
de.chojo.jdautil.conversation.elements.Result
-
Method Summary
Modifier and TypeMethodDescriptionstatic Resultfail()Fails the current step and repeats the last step againstatic ResultfailSilent(boolean silent) Deprecated, for removal: This API element is subject to removal in a future version.static Resultfinish()Ends the conversationstatic Resultfreeze()Freezes the conversation in the current step and handles another input.booleanisSilent()Checks if the failure is silent.intnext()Returns the id of the next stage.static Resultproceed(int next) Proceeds to the next steptype()
-
Method Details
-
proceed
Proceeds to the next step- Parameters:
next- next step- Returns:
- new result
-
finish
-
fail
Fails the current step and repeats the last step again- Returns:
- new result
-
failSilent
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor offreeze()Fails the current step and repeats the last step again- Parameters:
silent- true if the message should not be sent again- Returns:
- new result
-
freeze
Freezes the conversation in the current step and handles another input.- Returns:
- new result
-
isSilent
public boolean isSilent()Checks if the failure is silent. Only applicable iftype()isResultType.FAILED- Returns:
- true if silent
-
type
- Returns:
-
next
public int next()Returns the id of the next stage. Only applicable iftype()isResultType.PROCEED- Returns:
- id of next step
-
freeze()