Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Public Attributes | List of all members
cDelayedFluidSimulatorChunkData::cSlot Class Reference

#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...
 

Detailed Description

Definition at line 22 of file DelayedFluidSimulator.h.

Member Function Documentation

◆ Add()

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.

◆ HasBlock()

bool cDelayedFluidSimulatorChunkData::cSlot::HasBlock ( int  a_RelX,
int  a_RelY,
int  a_RelZ 
)

Returns true if the specified block is stored.

Member Data Documentation

◆ m_Blocks

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.


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