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
ConstructorsConstructorDescriptionRestaurantScreenJEIHandler(mezz.jei.api.runtime.IIngredientManager ingredientManager) Creates an instance of aRestaurantScreenJEIHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable mezz.jei.api.gui.handlers.IGuiPropertiesfinal booleanIndicates 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 inthashCode()Returns a hash code value for this object.mezz.jei.api.runtime.IIngredientManagerReturns the value of theingredientManagerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RestaurantScreenJEIHandler
public RestaurantScreenJEIHandler(mezz.jei.api.runtime.IIngredientManager ingredientManager) Creates an instance of aRestaurantScreenJEIHandlerrecord class.- Parameters:
ingredientManager- the value for theingredientManagerrecord component
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<SCREEN extends RestaurantScreen<?>,mezz.jei.api.gui.handlers.IGuiProperties> - Specified by:
applyin interfacemezz.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:
getClickableIngredientUnderMousein interfacemezz.jei.api.gui.handlers.IScreenHandler<SCREEN extends RestaurantScreen<?>>
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
ingredientManager
public mezz.jei.api.runtime.IIngredientManager ingredientManager()Returns the value of theingredientManagerrecord component.- Returns:
- the value of the
ingredientManagerrecord component
-