ButtonAreaSupplier.java 450 B

123456789101112131415161718192021222324
  1. package me.shedaniel.rei.api;
  2. import java.awt.*;
  3. public interface ButtonAreaSupplier {
  4. /**
  5. * Declares the button bounds
  6. *
  7. * @param bounds the bounds of the recipe display
  8. * @return the bounds of the button
  9. */
  10. Rectangle get(Rectangle bounds);
  11. /**
  12. * Declares the button text
  13. *
  14. * @return the text of the button
  15. */
  16. default String getButtonText() {
  17. return "+";
  18. }
  19. }