Record Class GuiGeneratedContent.ComponentFactory
java.lang.Object
java.lang.Record
com.render.api.gui.GuiGeneratedContent.ComponentFactory
- Record Components:
factory- lazy retained component supplier
- All Implemented Interfaces:
GuiGeneratedContent.Part
- Enclosing class:
GuiGeneratedContent
public static record GuiGeneratedContent.ComponentFactory(Supplier<? extends GuiComponent<?>> factory)
extends Record
implements GuiGeneratedContent.Part
Trusted component factory. The produced component remains pointer-transparent
because its generated pseudo-element parent does not route input.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentFactory(Supplier<? extends GuiComponent<?>> factory) Creates an instance of aComponentFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Supplier<? extends GuiComponent<?>> factory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentFactory
Creates an instance of aComponentFactoryrecord class.- Parameters:
factory- the value for thefactoryrecord 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 withObjects::equals(Object,Object). -
factory
-