Package net.mcreator.ui.wysiwyg
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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-
editor
Returns the value of theeditorrecord component.- Returns:
- the value of the
editorrecord component
-