Class VideoFrameCapture
java.lang.Object
dev.jensderuiter.minecraft_imagery.video.VideoFrameCapture
A class to render a single video capture frame.
Should be instantiated once for every frame.
Use .render() to render and get the resulting image.
It is recommended to ALWAYS CALL .render() ASYNCHRONOUSLY as it can take a while.
-
Constructor Summary
ConstructorsConstructorDescriptionVideoFrameCapture(org.bukkit.Location location, org.bukkit.block.BlockFace facing, List<org.bukkit.entity.Entity> entities, int box_radius, int width, int height) Creates an instance of the VideoFrameCapture class. -
Method Summary
-
Constructor Details
-
VideoFrameCapture
public VideoFrameCapture(org.bukkit.Location location, org.bukkit.block.BlockFace facing, List<org.bukkit.entity.Entity> entities, int box_radius, int width, int height) Creates an instance of the VideoFrameCapture class.- Parameters:
location- The location from which to capture the frame.facing- The direction the camera should look at (NORTH, EAST, SOUTH, WEST).entities- A list of entities that can be drawn (only supports players).box_radius- The radius the camera should look in blocks.width- The width of the resulting image.height- The height of the resulting image.
-
-
Method Details
-
render
-