Enum Class TFileChooserScreen.Mode
java.lang.Object
java.lang.Enum<TFileChooserScreen.Mode>
com.thecsdev.commonmc.api.client.gui.screen.promise.TFileChooserScreen.Mode
- All Implemented Interfaces:
Serializable, Comparable<TFileChooserScreen.Mode>, Constable
- Enclosing class:
TFileChooserScreen
Defines the operational modes of the
TFileChooserScreen, determining its
behavior and user interactions.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTFileChooserScreenhas the user to select a file from existing files on their device.TFileChooserScreenhas the user choose the path for a new file that is to be created on their device.TFileChooserScreenacts as a generic file browser. -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull net.minecraft.network.chat.ComponentReturns the title that should be applied to aTFileChooserScreen's window depending on itsTFileChooserScreen.Mode.final booleanReturns whether thisTFileChooserScreen.Modeis related to file selection.static TFileChooserScreen.ModeReturns the enum constant of this class with the specified name.static TFileChooserScreen.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPLORE
TFileChooserScreenacts as a generic file browser. No opening/saving files logic. -
CHOOSE_FILE
TFileChooserScreenhas the user to select a file from existing files on their device. -
CREATE_FILE
TFileChooserScreenhas the user choose the path for a new file that is to be created on their device.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getWindowTitle
@NotNull public final @NotNull net.minecraft.network.chat.Component getWindowTitle()Returns the title that should be applied to aTFileChooserScreen's window depending on itsTFileChooserScreen.Mode. -
isFileSelection
public final boolean isFileSelection()Returns whether thisTFileChooserScreen.Modeis related to file selection.- See Also:
-