Interface DialogBodyBuilder<I>

Type Parameters:
I - the type of item for the item body
All Known Implementing Classes:
PaperDialogBodyBuilder, PEDialogBodyBuilder, SpigotDialogBodyBuilder

public interface DialogBodyBuilder<I>
Interface for building dialog bodies.
  • Method Summary

    Modifier and Type
    Method
    Description
    <B extends TextBody<B>, T extends ItemBody<I, B, T>>
    T
    Create an item body
    <T extends TextBody<T>>
    T
    Create a text body
  • Method Details

    • item

      <B extends TextBody<B>, T extends ItemBody<I, B, T>> T item()
      Create an item body
      Type Parameters:
      B - the type of text body
      T - the type of item body
      Returns:
      the instance of the item body
    • text

      <T extends TextBody<T>> T text()
      Create a text body
      Type Parameters:
      T - the type of text body
      Returns:
      the instance of the text body