Package tschipp.carryon.compat
Record Class ClothConfigCompatNeo
java.lang.Object
java.lang.Record
tschipp.carryon.compat.ClothConfigCompatNeo
- All Implemented Interfaces:
net.neoforged.fml.IExtensionPoint,net.neoforged.neoforge.client.gui.IConfigScreenFactory
public record ClothConfigCompatNeo(BuiltConfig client, BuiltConfig common)
extends Record
implements net.neoforged.neoforge.client.gui.IConfigScreenFactory
-
Constructor Summary
ConstructorsConstructorDescriptionClothConfigCompatNeo(BuiltConfig client, BuiltConfig common) Creates an instance of aClothConfigCompatNeorecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.common()Returns the value of thecommonrecord component.net.minecraft.client.gui.screens.ScreencreateScreen(net.neoforged.fml.ModContainer modContainer, net.minecraft.client.gui.screens.Screen screen) 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.
-
Constructor Details
-
ClothConfigCompatNeo
Creates an instance of aClothConfigCompatNeorecord class.- Parameters:
client- the value for theclientrecord componentcommon- the value for thecommonrecord component
-
-
Method Details
-
createScreen
public net.minecraft.client.gui.screens.Screen createScreen(net.neoforged.fml.ModContainer modContainer, net.minecraft.client.gui.screens.Screen screen) - Specified by:
createScreenin interfacenet.neoforged.neoforge.client.gui.IConfigScreenFactory
-
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 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
-