Interface InstructionBuilder
- All Known Subinterfaces:
HUDBuilder<T>
- All Known Implementing Classes:
RectangleBuilder
,TextBuilder
,TextureBuilder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents utility builders for creating
Instruction
classes.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the instruction.static @NotNull RectangleBuilder
rect()
Creates a new builder forInstruction.DRAW_SHAPE
.static @NotNull TextBuilder
text()
Creates a new builder forInstruction.DRAW_TEXT
.static @NotNull TextureBuilder
texture()
Creates a new builder forInstruction.DRAW_TEXTURE
.
-
Method Details
-
build
Builds the instruction.- Returns:
- Constructed Instruction for this Builder
-
text
Creates a new builder forInstruction.DRAW_TEXT
.- Returns:
- Instruction Builder
-
rect
Creates a new builder forInstruction.DRAW_SHAPE
.- Returns:
- Instruction Builder
-
texture
Creates a new builder forInstruction.DRAW_TEXTURE
.- Returns:
- Instruction Builder
-