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:HUDBuilderSets the X coordinate of the element.- Specified by:
 xin interfaceHUDBuilder<RectangleBuilder>- Parameters:
 x- X coordinate, in pixels- Returns:
 - this class, for chaining
 
 - 
y
Description copied from interface:HUDBuilderSets the Y coordinate of the element.- Specified by:
 yin interfaceHUDBuilder<RectangleBuilder>- Parameters:
 y- Y coordinate, in pixels- Returns:
 - this class, for chaining
 
 - 
argb
Description copied from interface:HUDBuilderSets the color of the element using ARGB format.- Specified by:
 argbin interfaceHUDBuilder<RectangleBuilder>- Parameters:
 argb- Color in ARGB- Returns:
 - this class, for chaining
 
 - 
duration
Description copied from interface:HUDBuilderSets the duration the element should be displayed for.- Specified by:
 durationin 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:InstructionBuilderBuilds the instruction.- Specified by:
 buildin interfaceInstructionBuilder- Returns:
 - Constructed Instruction for this Builder
 
 
 -