Interface Pager.ElementTransformer<T>

Type Parameters:
T - The class to transform into a Component
Enclosing class:
Pager<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Pager.ElementTransformer<T>
A Functional interface to transform the given PagedElement into a Chat Component
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
    transform(T element)
     
  • Method Details

    • transform

      net.minecraft.network.chat.Component transform(T element)
      Parameters:
      element - The element
      Returns:
      The element represented as a component