Package de.cech12.solarcooker
Record Class FabricSolarCookerMod.SolarCookerData
java.lang.Object
java.lang.Record
de.cech12.solarcooker.FabricSolarCookerMod.SolarCookerData
- Enclosing class:
FabricSolarCookerMod
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, FabricSolarCookerMod.SolarCookerData> -
Constructor Summary
ConstructorsConstructorDescriptionSolarCookerData(boolean empty) Creates an instance of aSolarCookerDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()Returns the value of theemptyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,FabricSolarCookerMod.SolarCookerData> CODEC
-
-
Constructor Details
-
SolarCookerData
public SolarCookerData(boolean empty) Creates an instance of aSolarCookerDatarecord class.- Parameters:
empty- the value for theemptyrecord 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. All components in this record class are compared with '=='. -
empty
public boolean empty()Returns the value of theemptyrecord component.- Returns:
- the value of the
emptyrecord component
-