Record Class WYSIWYGComponentRegistration<T extends GUIComponent>
java.lang.Object
java.lang.Record
net.mcreator.ui.wysiwyg.WYSIWYGComponentRegistration<T>
public record WYSIWYGComponentRegistration<T extends GUIComponent>(String machineName, String icon, boolean worksInOverlay, Class<T extends GUIComponent> component, Class<? extends AbstractWYSIWYGDialog<T extends GUIComponent>> editor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWYSIWYGComponentRegistration(String machineName, String icon, boolean worksInOverlay, Class<T> component, Class<? extends AbstractWYSIWYGDialog<T>> editor) Creates an instance of aWYSIWYGComponentRegistrationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.Class<? extends AbstractWYSIWYGDialog<T>> editor()Returns the value of theeditorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.Returns the value of themachineNamerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theworksInOverlayrecord component.
-
Constructor Details
-
WYSIWYGComponentRegistration
public WYSIWYGComponentRegistration(String machineName, String icon, boolean worksInOverlay, Class<T> component, Class<? extends AbstractWYSIWYGDialog<T>> editor) Creates an instance of aWYSIWYGComponentRegistrationrecord class.- Parameters:
machineName- the value for themachineNamerecord componenticon- the value for theiconrecord componentworksInOverlay- the value for theworksInOverlayrecord componentcomponent- the value for thecomponentrecord componenteditor- the value for theeditorrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
machineName
Returns the value of themachineNamerecord component.- Returns:
- the value of the
machineNamerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
worksInOverlay
public boolean worksInOverlay()Returns the value of theworksInOverlayrecord component.- Returns:
- the value of the
worksInOverlayrecord component
-
component
-
editor
Returns the value of theeditorrecord component.- Returns:
- the value of the
editorrecord component
-