Package net.minecraftforge.client
Record Class ConfigGuiHandler.ConfigGuiFactory
java.lang.Object
java.lang.Record
net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory
- All Implemented Interfaces:
IExtensionPoint<ConfigGuiHandler.ConfigGuiFactory>
- Enclosing class:
- ConfigGuiHandler
public static record ConfigGuiHandler.ConfigGuiFactory(BiFunction<Minecraft,Screen,Screen> screenFunction)
extends Record
implements IExtensionPoint<ConfigGuiHandler.ConfigGuiFactory>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.fml.IExtensionPoint
IExtensionPoint.DisplayTest -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction<Minecraft,Screen, Screen> The field for thescreenFunctionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConfigGuiFactory(BiFunction<Minecraft, Screen, Screen> screenFunction) Creates an instance of aConfigGuiFactoryrecord 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.Returns the value of thescreenFunctionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
screenFunction
The field for thescreenFunctionrecord component.
-
-
Constructor Details
-
ConfigGuiFactory
Creates an instance of aConfigGuiFactoryrecord class.- Parameters:
screenFunction- the value for thescreenFunctionrecord 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 withObjects::equals(Object,Object). -
screenFunction
Returns the value of thescreenFunctionrecord component.- Returns:
- the value of the
screenFunctionrecord component
-