Package net.mcreator.element.parts.gui
Class GUIComponent
java.lang.Object
net.mcreator.element.parts.gui.GUIComponent
- All Implemented Interfaces:
- Comparable<GUIComponent>
- Direct Known Subclasses:
- Checkbox,- EntityModel,- GUIComponent.Unknown,- Image,- ImageButton,- Label,- SizedComponent,- Slot,- Sprite
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic final class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanintint
- 
Method SummaryModifier and TypeMethodDescriptionfinal intfinal booleanabstract intabstract StringgetName()Returns the name of the component.abstract intReturns the priority for when this component should be drawn in the UI, to represent how Minecraft draws components in the game.abstract intfinal intgetX()final intgetY()final intgx(int width) final intgy(int height) final inthashCode()booleanabstract voidpaintComponent(int cx, int cy, WYSIWYGEditor wysiwygEditor, Graphics2D g) toString()
- 
Field Details- 
anchorPoint
- 
xpublic int x
- 
ypublic int y
- 
lockedpublic boolean locked
- 
uuid
 
- 
- 
Method Details- 
getNameReturns the name of the component. Name should be Java and registry name compatible.The name should be unique for the components that need it. - Returns:
- Component name
 
- 
paintComponent
- 
getWidth
- 
getHeight
- 
getWeightpublic abstract int getWeight()Returns the priority for when this component should be drawn in the UI, to represent how Minecraft draws components in the game.- Returns:
- The priority of the component (lower means it will be rendered closer to the screen and higher means it will "sink" more behind other components)
 
- 
isSizeKnownpublic boolean isSizeKnown()
- 
getXpublic final int getX()
- 
getYpublic final int getY()
- 
gxpublic final int gx(int width) 
- 
gypublic final int gy(int height) 
- 
getAnchorPoint
- 
compareTo- Specified by:
- compareToin interface- Comparable<GUIComponent>
 
- 
hashCodepublic final int hashCode()
- 
equals
- 
toString
 
-