Record Class StonecutterPatternState
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.autocrafting.StonecutterPatternState
public record StonecutterPatternState(ItemResource input, ItemResource selectedOutput)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StonecutterPatternState> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, StonecutterPatternState> -
Constructor Summary
ConstructorsConstructorDescriptionStonecutterPatternState(ItemResource input, ItemResource selectedOutput) Creates an instance of aStonecutterPatternStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.Returns the value of theselectedOutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, StonecutterPatternState> STREAM_CODEC
-
-
Constructor Details
-
StonecutterPatternState
Creates an instance of aStonecutterPatternStaterecord class.- Parameters:
input- the value for theinputrecord componentselectedOutput- the value for theselectedOutputrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
selectedOutput
Returns the value of theselectedOutputrecord component.- Returns:
- the value of the
selectedOutputrecord component
-