Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <ForEachSourceCallback.h>
Public Member Functions | |
void | CheckIndirectPower () |
Callback invoked for blocks supporting quasiconnectivity. More... | |
ForEachSourceCallback (const cChunk &Chunk, Vector3i Position, BLOCKTYPE CurrentBlock) | |
void | operator() (Vector3i Location) |
Callback invoked for each potential source position of the redstone component. More... | |
Public Attributes | |
PowerLevel | Power |
Static Private Member Functions | |
static PowerLevel | QueryLinkedPower (const cChunk &Chunk, Vector3i QueryPosition, BLOCKTYPE QueryBlock, Vector3i SolidBlockPosition) |
Asks redstone handlers adjacent to a solid block how much power they will deliver to the querying position, via the solid block. More... | |
Private Attributes | |
const cChunk & | m_Chunk |
const BLOCKTYPE | m_CurrentBlock |
const Vector3i | m_Position |
Definition at line 10 of file ForEachSourceCallback.h.
ForEachSourceCallback::ForEachSourceCallback | ( | const cChunk & | Chunk, |
Vector3i | Position, | ||
BLOCKTYPE | CurrentBlock | ||
) |
Definition at line 15 of file ForEachSourceCallback.cpp.
void ForEachSourceCallback::CheckIndirectPower | ( | ) |
Callback invoked for blocks supporting quasiconnectivity.
Definition at line 63 of file ForEachSourceCallback.cpp.
void ForEachSourceCallback::operator() | ( | Vector3i | Location | ) |
Callback invoked for each potential source position of the redstone component.
Definition at line 27 of file ForEachSourceCallback.cpp.
|
staticprivate |
Asks redstone handlers adjacent to a solid block how much power they will deliver to the querying position, via the solid block.
Both QueryPosition and SolidBlockPosition are relative to Chunk.
Definition at line 91 of file ForEachSourceCallback.cpp.
|
private |
Definition at line 31 of file ForEachSourceCallback.h.
|
private |
Definition at line 33 of file ForEachSourceCallback.h.
|
private |
Definition at line 32 of file ForEachSourceCallback.h.
PowerLevel ForEachSourceCallback::Power |
Definition at line 23 of file ForEachSourceCallback.h.