Interface HUDBuilder<T>
- Type Parameters:
T
- The type of the builder
- All Superinterfaces:
InstructionBuilder
- All Known Implementing Classes:
RectangleBuilder
,TextBuilder
,TextureBuilder
Represents a
InstructionBuilder
for displaying elements on the HUD.-
Method Summary
Modifier and TypeMethodDescriptionargb
(int argb) Sets the color of the element using ARGB format.default T
argb
(int a, int r, int g, int b) Sets the color of the element using ARGB format.default T
Sets the color of the element.default T
Sets the color of the element.default T
duration
(int millis) Sets the duration the element should be displayed for.duration
(long millis) Sets the duration the element should be displayed for.default T
Sets the duration the element should be displayed for.default T
Sets the duration the element should be displayed for.default T
rgb
(int rgb) Sets the color of the element using RGB format.default T
rgb
(int r, int g, int b) Sets the color of the element using RGB format.x
(int x) Sets the X coordinate of the element.y
(int y) Sets the Y coordinate of the element.Methods inherited from interface xyz.gmitch215.socketmc.instruction.builder.InstructionBuilder
build
-
Method Details
-
x
Sets the X coordinate of the element.- Parameters:
x
- X coordinate, in pixels- Returns:
- this class, for chaining
-
y
Sets the Y coordinate of the element.- Parameters:
y
- Y coordinate, in pixels- Returns:
- this class, for chaining
-
argb
Sets the color of the element using ARGB format.- Parameters:
argb
- Color in ARGB- Returns:
- this class, for chaining
-
rgb
Sets the color of the element using RGB format.- Parameters:
r
- Redg
- Greenb
- Blue- Returns:
- this class, for chaining
-
rgb
Sets the color of the element using RGB format.- Parameters:
rgb
- RGB color- Returns:
- this class, for chaining
-
argb
Sets the color of the element using ARGB format.- Parameters:
a
- Alphar
- Redg
- Greenb
- Blue- Returns:
- this class, for chaining
-
color
Sets the color of the element.- Parameters:
color
- Color- Returns:
- this class, for chaining
-
color
Sets the color of the element.- Parameters:
color
- Coloralpha
- Alpha- Returns:
- this class, for chaining
-
duration
Sets the duration the element should be displayed for.- Parameters:
millis
- Duration, in milliseconds- Returns:
- this class, for chaining
-
duration
Sets the duration the element should be displayed for.- Parameters:
millis
- Duration, in milliseconds- Returns:
- this class, for chaining
-
duration
Sets the duration the element should be displayed for.- Parameters:
duration
- Duration- Returns:
- this class, for chaining
-
duration
Sets the duration the element should be displayed for.- Parameters:
time
- Duration Amountunit
- Duration Unit- Returns:
- this class, for chaining
-