Class CropSource.Builder
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.client.generators.texsources.CropSource.Builder
- Enclosing class:
CropSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the input texture.setSizeX(int sizeX) Sets the width of the output image, assuming the width of the image is that provided bysetTotalSize(int).setSizeY(int sizeY) Sets the height of the output image, assuming the height of the image is that provided bysetTotalSize(int).setStartX(int startX) Sets the initial X position of the output image, assuming the width of the image is that provided bysetTotalSize(int).setStartY(int startY) Sets the initial Y position of the output image, assuming the height of the image is that provided bysetTotalSize(int).setTotalSize(int totalSize) Sets a minimum width for the texture.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setTotalSize
Sets a minimum width for the texture. -
setStartX
Sets the initial X position of the output image, assuming the width of the image is that provided bysetTotalSize(int). -
setSizeX
Sets the width of the output image, assuming the width of the image is that provided bysetTotalSize(int). -
setStartY
Sets the initial Y position of the output image, assuming the height of the image is that provided bysetTotalSize(int). -
setSizeY
Sets the height of the output image, assuming the height of the image is that provided bysetTotalSize(int). -
setInput
Sets the input texture. -
build
-