Class TextureBuilder
java.lang.Object
xyz.gmitch215.socketmc.instruction.builder.TextureBuilder
- All Implemented Interfaces:
- HUDBuilder<TextureBuilder>,- InstructionBuilder
Builder for 
Instruction.DRAW_TEXTURE.- 
Method SummaryModifier and TypeMethodDescriptionargb(int argb) Deprecated.Unsupportedbuild()Builds the instruction.duration(long millis) Sets the duration the element should be displayed for.height(int height) Sets the height of the texture.regionHeight(int regionHeight) Sets the height of the region to draw.regionWidth(int regionWidth) Sets the width of the region to draw.startLeft(int startLeft) Sets where to start drawing from the left of the texture.startTop(int startTop) Sets where to start drawing from the top of the texture.texture(@NotNull Identifier texture) Sets the texture to draw.width(int width) Sets the width of the texture.x(int x) Sets the X coordinate of the element.y(int y) Sets the Y coordinate of the element.
- 
Method Details- 
textureSets the texture to draw.- Parameters:
- texture- Texture Identifier
- Returns:
- this class, for chaining
 
- 
xDescription copied from interface:HUDBuilderSets the X coordinate of the element.- Specified by:
- xin interface- HUDBuilder<TextureBuilder>
- Parameters:
- x- X coordinate, in pixels
- Returns:
- this class, for chaining
 
- 
yDescription copied from interface:HUDBuilderSets the Y coordinate of the element.- Specified by:
- yin interface- HUDBuilder<TextureBuilder>
- Parameters:
- y- Y coordinate, in pixels
- Returns:
- this class, for chaining
 
- 
argbDeprecated.UnsupportedDescription copied from interface:HUDBuilderSets the color of the element using ARGB format.- Specified by:
- argbin interface- HUDBuilder<TextureBuilder>
- Parameters:
- argb- Color in ARGB
- Returns:
- this class, for chaining
 
- 
durationDescription copied from interface:HUDBuilderSets the duration the element should be displayed for.- Specified by:
- durationin interface- HUDBuilder<TextureBuilder>
- Parameters:
- millis- Duration, in milliseconds
- Returns:
- this class, for chaining
 
- 
widthSets the width of the texture.- Parameters:
- width- Texture Width, in pixels
- Returns:
- this class, for chaining
 
- 
heightSets the height of the texture.- Parameters:
- height- Texture Height, in pixels
- Returns:
- this class, for chaining
 
- 
regionWidthSets the width of the region to draw.- Parameters:
- regionWidth- Region Width, in pixels
- Returns:
- this class, for chaining
 
- 
regionHeightSets the height of the region to draw.- Parameters:
- regionHeight- Region Height, in pixels
- Returns:
- this class, for chaining
 
- 
startTopSets where to start drawing from the top of the texture.- Parameters:
- startTop- Start Top Amount, in pixels
- Returns:
- this class, for chaining
 
- 
startLeftSets where to start drawing from the left of the texture.- Parameters:
- startLeft- Start Left Amount, in pixels
- Returns:
- this class, for chaining
 
- 
buildDescription copied from interface:InstructionBuilderBuilds the instruction.- Specified by:
- buildin interface- InstructionBuilder
- Returns:
- Constructed Instruction for this Builder
 
 
-