Class RectangleBuilder
java.lang.Object
xyz.gmitch215.socketmc.instruction.builder.RectangleBuilder
- All Implemented Interfaces:
HUDBuilder<RectangleBuilder>
,InstructionBuilder
-
Method Summary
Modifier and TypeMethodDescriptionargb
(int argb) Sets the color of the element using ARGB format.build()
Builds the instruction.dimensions
(int width, int height) Sets the dimensions of the shape.duration
(long millis) Sets the duration the element should be displayed for.height
(int height) Sets the height of the shape.width
(int width) Sets the width of the shape.x
(int x) Sets the X coordinate of the element.y
(int y) Sets the Y coordinate of the element.
-
Method Details
-
x
Description copied from interface:HUDBuilder
Sets the X coordinate of the element.- Specified by:
x
in interfaceHUDBuilder<RectangleBuilder>
- Parameters:
x
- X coordinate, in pixels- Returns:
- this class, for chaining
-
y
Description copied from interface:HUDBuilder
Sets the Y coordinate of the element.- Specified by:
y
in interfaceHUDBuilder<RectangleBuilder>
- Parameters:
y
- Y coordinate, in pixels- Returns:
- this class, for chaining
-
argb
Description copied from interface:HUDBuilder
Sets the color of the element using ARGB format.- Specified by:
argb
in interfaceHUDBuilder<RectangleBuilder>
- Parameters:
argb
- Color in ARGB- Returns:
- this class, for chaining
-
duration
Description copied from interface:HUDBuilder
Sets the duration the element should be displayed for.- Specified by:
duration
in interfaceHUDBuilder<RectangleBuilder>
- Parameters:
millis
- Duration, in milliseconds- Returns:
- this class, for chaining
-
width
Sets the width of the shape.- Parameters:
width
- Width- Returns:
- this class, for chaining
-
height
Sets the height of the shape.- Parameters:
height
- Height- Returns:
- this class, for chaining
-
dimensions
Sets the dimensions of the shape.- Parameters:
width
- Widthheight
- Height- Returns:
- this class, for chaining
-
build
Description copied from interface:InstructionBuilder
Builds the instruction.- Specified by:
build
in interfaceInstructionBuilder
- Returns:
- Constructed Instruction for this Builder
-