VoxelDataBlockEnterInfo

Inherits: Object

Information sent by a terrain when one of its data blocks enters the area of a VoxelViewer.

Description:

Information sent by a terrain when one of its data blocks enters the area of a VoxelViewer. See VoxelTerrain._on_data_block_entered.

Instances of this class must not be stored, as they will become invalid after the call they come from.

Methods:

Return Signature
bool are_voxels_edited ( ) const
int get_lod_index ( ) const
int get_network_peer_id ( ) const
Vector3i get_position ( ) const
VoxelBuffer get_voxels ( ) const

Method Descriptions

bool are_voxels_edited( )

Tells if voxels in the block have ever been edited. If not, it means the same data can be obtained by running the generator.

int get_lod_index( )

Gets which LOD index the data block is in.

int get_network_peer_id( )

Gets the network peer ID of the VoxelViewer who caused the block to be referenced.

Vector3i get_position( )

Gets the position of the data block, in data block coordinates (voxel coordinates are obtained by multiplying these coordinates with data block size).

VoxelBuffer get_voxels( )

Gets access to the voxels in the block.

Generated on Apr 06, 2024