Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cForEachChunkProvider Class Referenceabstract

#include <ForEachChunkProvider.h>

Inheritance diagram for cForEachChunkProvider:
Inheritance graph
[legend]

Public Member Functions

virtual bool ForEachChunkInRect (int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback &a_Callback)=0
 Calls the callback for each chunk in the specified range. More...
 
virtual bool WriteBlockArea (cBlockArea &a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes)=0
 Writes the block area into the specified coords. More...
 
virtual ~cForEachChunkProvider ()
 

Detailed Description

Definition at line 24 of file ForEachChunkProvider.h.

Constructor & Destructor Documentation

◆ ~cForEachChunkProvider()

virtual cForEachChunkProvider::~cForEachChunkProvider ( )
inlinevirtual

Definition at line 27 of file ForEachChunkProvider.h.

Member Function Documentation

◆ ForEachChunkInRect()

virtual bool cForEachChunkProvider::ForEachChunkInRect ( int  a_MinChunkX,
int  a_MaxChunkX,
int  a_MinChunkZ,
int  a_MaxChunkZ,
cChunkDataCallback &  a_Callback 
)
pure virtual

Calls the callback for each chunk in the specified range.

Implemented in cWorld, and cChunkInterface.

◆ WriteBlockArea()

virtual bool cForEachChunkProvider::WriteBlockArea ( cBlockArea a_Area,
int  a_MinBlockX,
int  a_MinBlockY,
int  a_MinBlockZ,
int  a_DataTypes 
)
pure virtual

Writes the block area into the specified coords.

Returns true if all chunks have been processed. a_DataTypes is a bitmask of cBlockArea::baXXX constants ORed together.

Implemented in cWorld, and cChunkInterface.


The documentation for this class was generated from the following file: