Record Class ProfessionWrapper
java.lang.Object
java.lang.Record
com.mrbysco.justenoughprofessions.jei.ProfessionWrapper
- All Implemented Interfaces:
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension<ProfessionWrapper>
public record ProfessionWrapper(ProfessionEntry entry)
extends Record
implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension<ProfessionWrapper>
-
Constructor Summary
ConstructorsConstructorDescriptionProfessionWrapper(ProfessionEntry entry) Creates an instance of aProfessionWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawInfo(ProfessionWrapper recipe, int recipeWidth, int recipeHeight, net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY) entry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.List<net.minecraft.world.item.ItemStack> net.minecraft.resources.ResourceLocationfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
drawInfo, getTooltipStrings, getTooltipStrings, handleInput, handleInput, isHandled
-
Constructor Details
-
ProfessionWrapper
Creates an instance of aProfessionWrapperrecord class.- Parameters:
entry- the value for theentryrecord component
-
-
Method Details
-
getProfessionName
public net.minecraft.resources.ResourceLocation getProfessionName() -
getBlockStacks
-
drawInfo
public void drawInfo(ProfessionWrapper recipe, int recipeWidth, int recipeHeight, net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY) - Specified by:
drawInfoin interfacemezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension<ProfessionWrapper>
-
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). -
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-