Package net.mcreator.element.parts.gui
Class EntityModel
java.lang.Object
net.mcreator.element.parts.gui.GUIComponent
net.mcreator.element.parts.gui.EntityModel
- All Implemented Interfaces:
Comparable<GUIComponent>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.element.parts.gui.GUIComponent
GUIComponent.AnchorPoint, GUIComponent.GSONAdapter, GUIComponent.Unknown -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintintFields inherited from class net.mcreator.element.parts.gui.GUIComponent
anchorPoint, locked, uuid, x, y -
Constructor Summary
ConstructorsConstructorDescriptionEntityModel(int x, int y, Procedure entityModel, Procedure displayCondition, int scale, int rotationX, boolean followMouseMovement) EntityModel(int x, int y, Procedure entityModel, Procedure displayCondition, int scale, int rotationX, boolean followMouseMovement, GUIComponent.AnchorPoint anchorPoint) -
Method Summary
Modifier and TypeMethodDescriptionintgetName()Returns the name of the component.intReturns the priority for when this component should be drawn in the UI, to represent how Minecraft draws components in the game.intvoidpaintComponent(int cx, int cy, WYSIWYGEditor wysiwygEditor, Graphics2D g) Methods inherited from class net.mcreator.element.parts.gui.GUIComponent
compareTo, equals, getAnchorPoint, getX, getY, gx, gy, hashCode, isSizeKnown, registerCustomComponent, toString
-
Field Details
-
entityModel
-
displayCondition
-
scale
public int scale -
rotationX
public int rotationX -
followMouseMovement
public boolean followMouseMovement
-
-
Constructor Details
-
EntityModel
-
EntityModel
public EntityModel(int x, int y, Procedure entityModel, Procedure displayCondition, int scale, int rotationX, boolean followMouseMovement, GUIComponent.AnchorPoint anchorPoint)
-
-
Method Details
-
getName
Description copied from class:GUIComponentReturns the name of the component. Name should be Java and registry name compatible.The name should be unique for the components that need it.
- Specified by:
getNamein classGUIComponent- Returns:
- Component name
-
paintComponent
- Specified by:
paintComponentin classGUIComponent
-
getWidth
- Specified by:
getWidthin classGUIComponent
-
getHeight
- Specified by:
getHeightin classGUIComponent
-
getWeight
public int getWeight()Description copied from class:GUIComponentReturns the priority for when this component should be drawn in the UI, to represent how Minecraft draws components in the game.- Specified by:
getWeightin classGUIComponent- 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)
-