Package net.minecraftforge.fmlclient
Record Class ConfigGuiHandler.ConfigGuiFactory
java.lang.Object
java.lang.Record
net.minecraftforge.fmlclient.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
Modifier and TypeFieldDescriptionprivate BiFunction<Minecraft,Screen,Screen>
The field for thescreenFunction
record component. -
Constructor Summary
ConstructorDescriptionConfigGuiFactory(BiFunction<Minecraft,Screen,Screen> screenFunction)
Creates an instance of aConfigGuiFactory
record class. -
Method Summary
-
Field Details
-
screenFunction
The field for thescreenFunction
record component.
-
-
Constructor Details
-
ConfigGuiFactory
Creates an instance of aConfigGuiFactory
record class.- Parameters:
screenFunction
- the value for thescreenFunction
record 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 thescreenFunction
record component.- Returns:
- the value of the
screenFunction
record component
-