Record Class ClothConfigCompat
java.lang.Object
java.lang.Record
tschipp.carryon.compat.ClothConfigCompat
public record ClothConfigCompat(BuiltConfig client, BuiltConfig common, Runnable onSave)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClothConfigCompat(BuiltConfig client, BuiltConfig common, Runnable onSave) Creates an instance of aClothConfigCompatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.common()Returns the value of thecommonrecord component.final booleanIndicates whether some other object is "equal to" this one.static net.minecraft.client.gui.screens.ScreengetConfigScreen(BuiltConfig client, BuiltConfig common, net.minecraft.client.gui.screens.Screen parentScreen, Runnable onSave) final inthashCode()Returns a hash code value for this object.onSave()Returns the value of theonSaverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClothConfigCompat
Creates an instance of aClothConfigCompatrecord class.- Parameters:
client- the value for theclientrecord componentcommon- the value for thecommonrecord componentonSave- the value for theonSaverecord component
-
-
Method Details
-
getConfigScreen
public static net.minecraft.client.gui.screens.Screen getConfigScreen(BuiltConfig client, BuiltConfig common, net.minecraft.client.gui.screens.Screen parentScreen, Runnable onSave) -
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). -
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
common
Returns the value of thecommonrecord component.- Returns:
- the value of the
commonrecord component
-
onSave
Returns the value of theonSaverecord component.- Returns:
- the value of the
onSaverecord component
-