Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <DelayedFluidSimulator.h>
Public Member Functions | |
bool | Add (int a_RelX, int a_RelY, int a_RelZ) |
Adds the specified block unless already present; returns true if added, false if the block was already present. More... | |
bool | HasBlock (int a_RelX, int a_RelY, int a_RelZ) |
Returns true if the specified block is stored. More... | |
Public Attributes | |
std::vector< cCoordWithData< size_t > > | m_Blocks [16] |
Array of block containers, each item stores blocks for one Z coord size_t param is the block index (for faster duplicate comparison in Add()) More... | |
Definition at line 22 of file DelayedFluidSimulator.h.
bool cDelayedFluidSimulatorChunkData::cSlot::Add | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ | ||
) |
Adds the specified block unless already present; returns true if added, false if the block was already present.
Definition at line 20 of file DelayedFluidSimulator.cpp.
bool cDelayedFluidSimulatorChunkData::cSlot::HasBlock | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ | ||
) |
Returns true if the specified block is stored.
std::vector<cCoordWithData<size_t> > cDelayedFluidSimulatorChunkData::cSlot::m_Blocks[16] |
Array of block containers, each item stores blocks for one Z coord size_t param is the block index (for faster duplicate comparison in Add())
Definition at line 34 of file DelayedFluidSimulator.h.