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
ConstructorDescriptionWYSIWYGComponentRegistration
(String machineName, String icon, boolean worksInOverlay, Class<T> component, Class<? extends AbstractWYSIWYGDialog<T>> editor) Creates an instance of aWYSIWYGComponentRegistration
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponent
record component.Class
<? extends AbstractWYSIWYGDialog<T>> editor()
Returns the value of theeditor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.icon()
Returns the value of theicon
record component.Returns the value of themachineName
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theworksInOverlay
record component.
-
Constructor Details
-
WYSIWYGComponentRegistration
public WYSIWYGComponentRegistration(String machineName, String icon, boolean worksInOverlay, Class<T> component, Class<? extends AbstractWYSIWYGDialog<T>> editor) Creates an instance of aWYSIWYGComponentRegistration
record class.- Parameters:
machineName
- the value for themachineName
record componenticon
- the value for theicon
record componentworksInOverlay
- the value for theworksInOverlay
record componentcomponent
- the value for thecomponent
record componenteditor
- the value for theeditor
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
machineName
Returns the value of themachineName
record component.- Returns:
- the value of the
machineName
record component
-
icon
Returns the value of theicon
record component.- Returns:
- the value of the
icon
record component
-
worksInOverlay
public boolean worksInOverlay()Returns the value of theworksInOverlay
record component.- Returns:
- the value of the
worksInOverlay
record component
-
component
Returns the value of thecomponent
record component.- Returns:
- the value of the
component
record component
-
editor
Returns the value of theeditor
record component.- Returns:
- the value of the
editor
record component
-