Record Class KeyPatternCleanupPostProcessor
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.schema.postprocessing.KeyPatternCleanupPostProcessor
- All Implemented Interfaces:
RecipePostProcessor
public record KeyPatternCleanupPostProcessor(String patternName, String keyName, RecipeComponent<?> component)
extends Record
implements RecipePostProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecipePostProcessorType<KeyPatternCleanupPostProcessor> -
Constructor Summary
ConstructorsConstructorDescriptionKeyPatternCleanupPostProcessor(String patternName, String keyName, RecipeComponent<?> component) Creates an instance of aKeyPatternCleanupPostProcessorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keyName()Returns the value of thekeyNamerecord component.Returns the value of thepatternNamerecord component.voidprocess(RecipeValidationContext ctx, KubeRecipe recipe) final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
TYPE
-
-
Constructor Details
-
KeyPatternCleanupPostProcessor
public KeyPatternCleanupPostProcessor(String patternName, String keyName, RecipeComponent<?> component) Creates an instance of aKeyPatternCleanupPostProcessorrecord class.- Parameters:
patternName- the value for thepatternNamerecord componentkeyName- the value for thekeyNamerecord componentcomponent- the value for thecomponentrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceRecipePostProcessor
-
process
- Specified by:
processin interfaceRecipePostProcessor
-
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). -
patternName
Returns the value of thepatternNamerecord component.- Returns:
- the value of the
patternNamerecord component
-
keyName
Returns the value of thekeyNamerecord component.- Returns:
- the value of the
keyNamerecord component
-
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-