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
Modifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec
<net.minecraft.network.RegistryFriendlyByteBuf, PatternGridData> -
Constructor Summary
ConstructorDescriptionPatternGridData
(GridData gridData, PatternType patternType, com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputData processingInputData, ResourceContainerData processingOutputData, int stonecutterSelectedRecipe) Creates an instance of aPatternGridData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.gridData()
Returns the value of thegridData
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepatternType
record component.com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputData
Returns the value of theprocessingInputData
record component.Returns the value of theprocessingOutputData
record component.int
Returns the value of thestonecutterSelectedRecipe
record component.final String
toString()
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 aPatternGridData
record class.- Parameters:
gridData
- the value for thegridData
record componentpatternType
- the value for thepatternType
record componentprocessingInputData
- the value for theprocessingInputData
record componentprocessingOutputData
- the value for theprocessingOutputData
record componentstonecutterSelectedRecipe
- the value for thestonecutterSelectedRecipe
record 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 thegridData
record component.- Returns:
- the value of the
gridData
record component
-
patternType
Returns the value of thepatternType
record component.- Returns:
- the value of the
patternType
record component
-
processingInputData
public com.refinedmods.refinedstorage.common.autocrafting.patterngrid.ProcessingInputData processingInputData()Returns the value of theprocessingInputData
record component.- Returns:
- the value of the
processingInputData
record component
-
processingOutputData
Returns the value of theprocessingOutputData
record component.- Returns:
- the value of the
processingOutputData
record component
-
stonecutterSelectedRecipe
public int stonecutterSelectedRecipe()Returns the value of thestonecutterSelectedRecipe
record component.- Returns:
- the value of the
stonecutterSelectedRecipe
record component
-