Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- builder()
- toString()
- hashCode()
- equals(Object)
- listElementId()
- rootSelectorId()
- searchInputId()
- currentPathId()
- roots()
- allowedExtensions()
- enableRootSelector()
- enableSearch()
- enableDirectoryNav()
- enableMultiSelect()
- maxResults()
- customProvider()
- assetPackMode()
- assetPackSubPath()
- terminalDirectoryPredicate()
Record Class FileBrowserConfig
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.ui.browser.FileBrowserConfig
public record FileBrowserConfig(@Nonnull String listElementId, @Nullable String rootSelectorId, @Nullable String searchInputId, @Nullable String currentPathId, @Nonnull List<FileBrowserConfig.RootEntry> roots, @Nonnull Set<String> allowedExtensions, boolean enableRootSelector, boolean enableSearch, boolean enableDirectoryNav, boolean enableMultiSelect, int maxResults, @Nullable FileListProvider customProvider, boolean assetPackMode, @Nullable String assetPackSubPath, @Nullable Predicate<Path> terminalDirectoryPredicate)
extends Record
Configuration for the ServerFileBrowser component.
Uses builder pattern for ergonomic construction with sensible defaults.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordRepresents a selectable root directory in the browser. -
Constructor Summary
ConstructorsConstructorDescriptionFileBrowserConfig(String listElementId, String rootSelectorId, String searchInputId, String currentPathId, List<FileBrowserConfig.RootEntry> roots, Set<String> allowedExtensions, boolean enableRootSelector, boolean enableSearch, boolean enableDirectoryNav, boolean enableMultiSelect, int maxResults, FileListProvider customProvider, boolean assetPackMode, String assetPackSubPath, Predicate<Path> terminalDirectoryPredicate) Creates an instance of aFileBrowserConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedExtensionsrecord component.booleanReturns the value of theassetPackModerecord component.Returns the value of theassetPackSubPathrecord component.static FileBrowserConfig.Builderbuilder()Returns the value of thecurrentPathIdrecord component.Returns the value of thecustomProviderrecord component.booleanReturns the value of theenableDirectoryNavrecord component.booleanReturns the value of theenableMultiSelectrecord component.booleanReturns the value of theenableRootSelectorrecord component.booleanReturns the value of theenableSearchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelistElementIdrecord component.intReturns the value of themaxResultsrecord component.roots()Returns the value of therootsrecord component.Returns the value of therootSelectorIdrecord component.Returns the value of thesearchInputIdrecord component.Returns the value of theterminalDirectoryPredicaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileBrowserConfig
public FileBrowserConfig(@Nonnull String listElementId, @Nullable String rootSelectorId, @Nullable String searchInputId, @Nullable String currentPathId, @Nonnull List<FileBrowserConfig.RootEntry> roots, @Nonnull Set<String> allowedExtensions, boolean enableRootSelector, boolean enableSearch, boolean enableDirectoryNav, boolean enableMultiSelect, int maxResults, @Nullable FileListProvider customProvider, boolean assetPackMode, @Nullable String assetPackSubPath, @Nullable Predicate<Path> terminalDirectoryPredicate) Creates an instance of aFileBrowserConfigrecord class.- Parameters:
listElementId- the value for thelistElementIdrecord componentrootSelectorId- the value for therootSelectorIdrecord componentsearchInputId- the value for thesearchInputIdrecord componentcurrentPathId- the value for thecurrentPathIdrecord componentroots- the value for therootsrecord componentallowedExtensions- the value for theallowedExtensionsrecord componentenableRootSelector- the value for theenableRootSelectorrecord componentenableSearch- the value for theenableSearchrecord componentenableDirectoryNav- the value for theenableDirectoryNavrecord componentenableMultiSelect- the value for theenableMultiSelectrecord componentmaxResults- the value for themaxResultsrecord componentcustomProvider- the value for thecustomProviderrecord componentassetPackMode- the value for theassetPackModerecord componentassetPackSubPath- the value for theassetPackSubPathrecord componentterminalDirectoryPredicate- the value for theterminalDirectoryPredicaterecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
listElementId
Returns the value of thelistElementIdrecord component.- Returns:
- the value of the
listElementIdrecord component
-
rootSelectorId
Returns the value of therootSelectorIdrecord component.- Returns:
- the value of the
rootSelectorIdrecord component
-
searchInputId
Returns the value of thesearchInputIdrecord component.- Returns:
- the value of the
searchInputIdrecord component
-
currentPathId
Returns the value of thecurrentPathIdrecord component.- Returns:
- the value of the
currentPathIdrecord component
-
roots
Returns the value of therootsrecord component.- Returns:
- the value of the
rootsrecord component
-
allowedExtensions
-
enableRootSelector
public boolean enableRootSelector()Returns the value of theenableRootSelectorrecord component.- Returns:
- the value of the
enableRootSelectorrecord component
-
enableSearch
public boolean enableSearch()Returns the value of theenableSearchrecord component.- Returns:
- the value of the
enableSearchrecord component
-
enableMultiSelect
public boolean enableMultiSelect()Returns the value of theenableMultiSelectrecord component.- Returns:
- the value of the
enableMultiSelectrecord component
-
maxResults
public int maxResults()Returns the value of themaxResultsrecord component.- Returns:
- the value of the
maxResultsrecord component
-
customProvider
Returns the value of thecustomProviderrecord component.- Returns:
- the value of the
customProviderrecord component
-
assetPackMode
public boolean assetPackMode()Returns the value of theassetPackModerecord component.- Returns:
- the value of the
assetPackModerecord component
-
assetPackSubPath
Returns the value of theassetPackSubPathrecord component.- Returns:
- the value of the
assetPackSubPathrecord component
-
terminalDirectoryPredicate
-