Interface TemplateSlot<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 interface TemplateSlot<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable SlotPos
    Gets the slot position of a template instance.
  • Method Details

    • get

      @Nullable @Nullable SlotPos get(TemplateInfo<T> info)
      Gets the slot position of a template instance.
      Parameters:
      info - the TemplateInfo context object
      Returns:
      the slot position, or null if the instance should not be displayed