Package net.md_5.bungee.api.dialog.input
Class BooleanInput
- java.lang.Object
-
- net.md_5.bungee.api.dialog.input.DialogInput
-
- net.md_5.bungee.api.dialog.input.BooleanInput
-
public class BooleanInput extends DialogInput
-
-
Constructor Summary
Constructors Constructor Description BooleanInput(String key, BaseComponent label)BooleanInput(String key, BaseComponent label, boolean initial, String onTrue, String onFalse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)inthashCode()booleaninitial()BooleanInputinitial(boolean initial)BaseComponentlabel()BooleanInputlabel(BaseComponent label)StringonFalse()BooleanInputonFalse(String onFalse)StringonTrue()BooleanInputonTrue(String onTrue)StringtoString()-
Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
-
-
-
Constructor Detail
-
BooleanInput
public BooleanInput(String key, BaseComponent label)
-
BooleanInput
public BooleanInput(String key, BaseComponent label, boolean initial, String onTrue, String onFalse)
-
-
Method Detail
-
label
public BaseComponent label()
-
initial
public boolean initial()
-
onTrue
public String onTrue()
-
onFalse
public String onFalse()
-
label
public BooleanInput label(BaseComponent label)
- Returns:
this.
-
initial
public BooleanInput initial(boolean initial)
- Returns:
this.
-
onTrue
public BooleanInput onTrue(String onTrue)
- Returns:
this.
-
onFalse
public BooleanInput onFalse(String onFalse)
- Returns:
this.
-
toString
public String toString()
- Overrides:
toStringin classDialogInput
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDialogInput
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDialogInput
-
-