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
-
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 with thecomparemethod from their corresponding wrapper classes. -
empty
public boolean empty()Returns the value of theemptyrecord component.- Returns:
- the value of the
emptyrecord component
-