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

public static enum TFileChooserScreen.Mode extends Enum<TFileChooserScreen.Mode>
Defines the operational modes of the TFileChooserScreen, determining its behavior and user interactions.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static TFileChooserScreen.Mode[] 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

      public static TFileChooserScreen.Mode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getWindowTitle

      @NotNull public final @NotNull net.minecraft.network.chat.Component getWindowTitle()
      Returns the title that should be applied to a TFileChooserScreen's window depending on its TFileChooserScreen.Mode.
    • isFileSelection

      public final boolean isFileSelection()
      Returns whether this TFileChooserScreen.Mode is related to file selection.
      See Also: