Observer

interface Observer

Functions

Link copied to clipboard
abstract fun downloadScreenshotBase64(): String
Link copied to clipboard
abstract fun navigationGraph(gridId: String): NavGraph
Link copied to clipboard
abstract fun observe(): CharacterObservation
Link copied to clipboard
abstract fun observeBlocks(): Observation
Link copied to clipboard
abstract fun observeCharacters(): List<CharacterObservation>
Link copied to clipboard
abstract fun observeControlledEntity(): ExtendedEntity
Link copied to clipboard
abstract fun observeFloatingObjects(): List<FloatingObject>
Link copied to clipboard
abstract fun observeNewBlocks(): Observation
Link copied to clipboard
abstract fun switchCamera()
Link copied to clipboard
abstract fun takeScreenshot(absolutePath: String)

Creates screenshot in the game. If there's an error, no exception is thrown (swallowed by the game itself). Creates directories that do not exist if necessary. If this method doesn't do anything it's usually a problem with the path or permissions on the filesystem.

Extensions

Link copied to clipboard
fun Observer.blockById(blockId: BlockId): Block
Link copied to clipboard
fun Observer.distanceTo(position: Vec3F): Float
Link copied to clipboard
fun Observer.downloadScreenShot(destination: File)
Link copied to clipboard
fun Observer.navigationGraph(): NavGraph