Interface TestScreenshotCommonOptions<SELF extends TestScreenshotCommonOptions<SELF>>
- Type Parameters:
SELF- The builder class
- All Known Subinterfaces:
TestScreenshotComparisonOptions, TestScreenshotOptions
@NonExtendable
public interface TestScreenshotCommonOptions<SELF extends TestScreenshotCommonOptions<SELF>>
Base class for screenshot customization options common to taking screenshots and comparing them.
-
Method Summary
Modifier and TypeMethodDescriptionBy default, screenshot file names will be prefixed by a counter so that the screenshots appear in sequence in the screenshots directory.withDeltaTicks(float deltaTicks) Changes the delta ticks to take this screenshot with.withDestinationDir(Path destinationDir) Changes the directory in which this screenshot is saved, which defaults to thescreenshotsdirectory in the game's run directory.withSize(int width, int height) Changes the resolution of the screenshot, which defaults to the resolution of the Minecraft window.
-
Method Details
-
disableCounterPrefix
SELF disableCounterPrefix()By default, screenshot file names will be prefixed by a counter so that the screenshots appear in sequence in the screenshots directory. Use this method to disable this behavior.- Returns:
- This screenshot options instance
-
withDeltaTicks
Changes the delta ticks to take this screenshot with. Delta ticks controls interpolation between the previous tick and the current tick to make objects appear to move more smoothly when there are multiple frames in a tick. Defaults to1, which renders all objects as their appear in the current tick.- Parameters:
deltaTicks- The delta ticks to take this screenshot with- Returns:
- This screenshot options instance
-
withSize
Changes the resolution of the screenshot, which defaults to the resolution of the Minecraft window.- Parameters:
width- The width of the screenshotheight- The height of the screenshot- Returns:
- This screenshot options instance
-
withDestinationDir
-