Package wtf.choco.veinminer.config
Class ClientConfig.Builder
java.lang.Object
wtf.choco.veinminer.config.ClientConfig.Builder
- Enclosing class:
- ClientConfig
A builder class for
ClientConfig
instances.-
Method Summary
Modifier and TypeMethodDescription@NotNull ClientConfig.Builder
allowActivationKeybind
(boolean allowActivationKeybind) Set whether or not the activation key bind is allowed.@NotNull ClientConfig.Builder
allowPatternSwitchingKeybind
(boolean allowPatternSwitchingKeybind) Set whether or not the pattern switching key binds are allowed.@NotNull ClientConfig.Builder
allowWireframeRendering
(boolean allowWireframeRendering) Set whether or not the client is allowed to render a wireframe.@NotNull ClientConfig.Builder
applyBitmask
(byte bitmask) Apply the given bitmask to this builder's boolean values.@NotNull ClientConfig
build()
Get theClientConfig
instance.
-
Method Details
-
allowActivationKeybind
@NotNull public @NotNull ClientConfig.Builder allowActivationKeybind(boolean allowActivationKeybind) Set whether or not the activation key bind is allowed.- Parameters:
allowActivationKeybind
- true if allowed, false if not- Returns:
- this instance. Allows for chained method calls
- See Also:
-
allowPatternSwitchingKeybind
@NotNull public @NotNull ClientConfig.Builder allowPatternSwitchingKeybind(boolean allowPatternSwitchingKeybind) Set whether or not the pattern switching key binds are allowed.- Parameters:
allowPatternSwitchingKeybind
- true if allowed, false if not- Returns:
- this instance. Allows for chained method calls
- See Also:
-
allowWireframeRendering
@NotNull public @NotNull ClientConfig.Builder allowWireframeRendering(boolean allowWireframeRendering) Set whether or not the client is allowed to render a wireframe.- Parameters:
allowWireframeRendering
- true if allowed, false if not- Returns:
- this instance. Allows for chained method calls
- See Also:
-
applyBitmask
Apply the given bitmask to this builder's boolean values.- Parameters:
bitmask
- the bitmask- Returns:
- this instance. Allows for chained method calls
- See Also:
-
build
Get theClientConfig
instance.- Returns:
- the built instance
-