Record Class BogglePatternAdvancedIngredient
java.lang.Object
java.lang.Record
com.petrolpark.core.recipe.bogglepattern.BogglePatternAdvancedIngredient
- All Implemented Interfaces:
IAdvancedIngredient<net.neoforged.neoforge.common.MutableDataComponentHolder>,ITypelessAdvancedIngredient<net.neoforged.neoforge.common.MutableDataComponentHolder>,Predicate<net.neoforged.neoforge.common.MutableDataComponentHolder>
public record BogglePatternAdvancedIngredient(BogglePattern pattern)
extends Record
implements IAdvancedIngredient<net.neoforged.neoforge.common.MutableDataComponentHolder>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBogglePatternAdvancedIngredientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCounterDescription(Lang.IndentedTooltipBuilder description) voidaddToDescription(Lang.IndentedTooltipBuilder description) final booleanIndicates whether some other object is "equal to" this one.IAdvancedIngredientType<? super net.neoforged.neoforge.common.MutableDataComponentHolder> getType()final inthashCode()Returns a hash code value for this object.pattern()Returns the value of thepatternrecord component.booleantest(net.neoforged.neoforge.common.MutableDataComponentHolder stack) 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 com.petrolpark.core.recipe.ingredient.advanced.IAdvancedIngredient
simplifyMethods inherited from interface com.petrolpark.core.recipe.ingredient.advanced.ITypelessAdvancedIngredient
checkedCast, modifyCounterExamples, modifyExamples, streamCounterExamples, streamExamples
-
Constructor Details
-
BogglePatternAdvancedIngredient
Creates an instance of aBogglePatternAdvancedIngredientrecord class.- Parameters:
pattern- the value for thepatternrecord component
-
-
Method Details
-
test
public boolean test(net.neoforged.neoforge.common.MutableDataComponentHolder stack) -
addToDescription
- Specified by:
addToDescriptionin interfaceITypelessAdvancedIngredient<net.neoforged.neoforge.common.MutableDataComponentHolder>
-
addToCounterDescription
- Specified by:
addToCounterDescriptionin interfaceITypelessAdvancedIngredient<net.neoforged.neoforge.common.MutableDataComponentHolder>
-
getType
public IAdvancedIngredientType<? super net.neoforged.neoforge.common.MutableDataComponentHolder> getType()- Specified by:
getTypein interfaceIAdvancedIngredient<net.neoforged.neoforge.common.MutableDataComponentHolder>
-
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). -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-