Interface Buildable.Builder<T extends Buildable<T,B>,B extends Buildable.Builder<T,B>>

Type Parameters:
T - the type of the object
B - the type of the builder
All Known Subinterfaces:
BuildableComponent.Builder<C,B>, DynamicKeyContainer.Builder, ListComponent.Builder, NumberComponent.Builder, TemporalComponent.Builder, TextComponent.Builder, TranslatableComponent.Builder
Enclosing interface:
Buildable<T extends Buildable<T,B>,B extends Buildable.Builder<T,B>>

public static interface Buildable.Builder<T extends Buildable<T,B>,B extends Buildable.Builder<T,B>>
A builder for an object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the object.
    default B
    modify(Consumer<B> modifier)
    Modifies this builder.
  • Method Details

    • modify

      default B modify(Consumer<B> modifier)
      Modifies this builder.
      Parameters:
      modifier - the modifier
      Returns:
      this builder
    • build

      T build()
      Builds the object.