Record Class PatternGridData
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.autocrafting.patterngrid.PatternGridData
public record PatternGridData(GridData gridData, PatternType patternType, com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputData processingInputData, ResourceContainerData processingOutputData, int stonecutterSelectedRecipe)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, PatternGridData> -
Constructor Summary
ConstructorsConstructorDescriptionPatternGridData(GridData gridData, PatternType patternType, com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputData processingInputData, ResourceContainerData processingOutputData, int stonecutterSelectedRecipe) Creates an instance of aPatternGridDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gridData()Returns the value of thegridDatarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepatternTyperecord component.com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputDataReturns the value of theprocessingInputDatarecord component.Returns the value of theprocessingOutputDatarecord component.intReturns the value of thestonecutterSelectedReciperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,PatternGridData> STREAM_CODEC
-
-
Constructor Details
-
PatternGridData
public PatternGridData(GridData gridData, PatternType patternType, com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputData processingInputData, ResourceContainerData processingOutputData, int stonecutterSelectedRecipe) Creates an instance of aPatternGridDatarecord class.- Parameters:
gridData- the value for thegridDatarecord componentpatternType- the value for thepatternTyperecord componentprocessingInputData- the value for theprocessingInputDatarecord componentprocessingOutputData- the value for theprocessingOutputDatarecord componentstonecutterSelectedRecipe- the value for thestonecutterSelectedReciperecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
gridData
Returns the value of thegridDatarecord component.- Returns:
- the value of the
gridDatarecord component
-
patternType
Returns the value of thepatternTyperecord component.- Returns:
- the value of the
patternTyperecord component
-
processingInputData
public com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputData processingInputData()Returns the value of theprocessingInputDatarecord component.- Returns:
- the value of the
processingInputDatarecord component
-
processingOutputData
Returns the value of theprocessingOutputDatarecord component.- Returns:
- the value of the
processingOutputDatarecord component
-
stonecutterSelectedRecipe
public int stonecutterSelectedRecipe()Returns the value of thestonecutterSelectedReciperecord component.- Returns:
- the value of the
stonecutterSelectedReciperecord component
-