Record Class RestaurantScreenJEIHandler<SCREEN extends RestaurantScreen<?>>

java.lang.Object
java.lang.Record
petrolpark.mc.library.core.world.restaurant.gui.RestaurantScreenJEIHandler<SCREEN>
All Implemented Interfaces:
Function<SCREEN,mezz.jei.api.gui.handlers.IGuiProperties>, mezz.jei.api.gui.handlers.IScreenHandler<SCREEN>

public record RestaurantScreenJEIHandler<SCREEN extends RestaurantScreen<?>>(mezz.jei.api.runtime.IIngredientManager ingredientManager) extends Record implements mezz.jei.api.gui.handlers.IScreenHandler<SCREEN>
  • Constructor Summary

    Constructors
    Constructor
    Description
    RestaurantScreenJEIHandler(mezz.jei.api.runtime.IIngredientManager ingredientManager)
    Creates an instance of a RestaurantScreenJEIHandler record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable mezz.jei.api.gui.handlers.IGuiProperties
    apply(SCREEN guiScreen)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    Optional<mezz.jei.api.runtime.IClickableIngredient<?>>
    getClickableIngredientUnderMouse(mezz.jei.api.gui.builder.IClickableIngredientFactory factory, SCREEN screen, double mouseX, double mouseY)
     
    final int
    Returns a hash code value for this object.
    mezz.jei.api.runtime.IIngredientManager
    Returns the value of the ingredientManager record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

    • RestaurantScreenJEIHandler

      public RestaurantScreenJEIHandler(mezz.jei.api.runtime.IIngredientManager ingredientManager)
      Creates an instance of a RestaurantScreenJEIHandler record class.
      Parameters:
      ingredientManager - the value for the ingredientManager record component
  • Method Details

    • apply

      @Nullable public @Nullable mezz.jei.api.gui.handlers.IGuiProperties apply(SCREEN guiScreen)
      Specified by:
      apply in interface Function<SCREEN extends RestaurantScreen<?>,mezz.jei.api.gui.handlers.IGuiProperties>
      Specified by:
      apply in interface mezz.jei.api.gui.handlers.IScreenHandler<SCREEN extends RestaurantScreen<?>>
    • getClickableIngredientUnderMouse

      public Optional<mezz.jei.api.runtime.IClickableIngredient<?>> getClickableIngredientUnderMouse(@Nonnull mezz.jei.api.gui.builder.IClickableIngredientFactory factory, @Nonnull SCREEN screen, double mouseX, double mouseY)
      Specified by:
      getClickableIngredientUnderMouse in interface mezz.jei.api.gui.handlers.IScreenHandler<SCREEN extends RestaurantScreen<?>>
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ingredientManager

      public mezz.jei.api.runtime.IIngredientManager ingredientManager()
      Returns the value of the ingredientManager record component.
      Returns:
      the value of the ingredientManager record component