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 RectangleBuilderrect()Creates a new builder forInstruction.DRAW_SHAPE.static @NotNull TextBuildertext()Creates a new builder forInstruction.DRAW_TEXT.static @NotNull TextureBuildertexture()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
-