Class ClientConfig.Builder

java.lang.Object
wtf.choco.veinminer.config.ClientConfig.Builder
Enclosing class:
ClientConfig

public static final class ClientConfig.Builder extends Object
A builder class for ClientConfig instances.
  • 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

      @NotNull public @NotNull ClientConfig.Builder applyBitmask(byte bitmask)
      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

      @NotNull public @NotNull ClientConfig build()
      Get the ClientConfig instance.
      Returns:
      the built instance