Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
RedstoneLampHandler Namespace Reference

Functions

static void ForValidSourcePositions (const cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, ForEachSourceCallback &Callback)
 
static PowerLevel GetPowerDeliveredToPosition (const cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType, bool IsLinked)
 
static bool IsOn (BLOCKTYPE a_BlockType)
 
static void Update (cChunk &a_Chunk, cChunk &, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, const PowerLevel Power)
 

Function Documentation

◆ ForValidSourcePositions()

static void RedstoneLampHandler::ForValidSourcePositions ( const cChunk a_Chunk,
Vector3i  a_Position,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_Meta,
ForEachSourceCallback Callback 
)
static

Definition at line 40 of file RedstoneLampHandler.h.

◆ GetPowerDeliveredToPosition()

static PowerLevel RedstoneLampHandler::GetPowerDeliveredToPosition ( const cChunk a_Chunk,
Vector3i  a_Position,
BLOCKTYPE  a_BlockType,
Vector3i  a_QueryPosition,
BLOCKTYPE  a_QueryBlockType,
bool  IsLinked 
)
static

Definition at line 15 of file RedstoneLampHandler.h.

◆ IsOn()

static bool RedstoneLampHandler::IsOn ( BLOCKTYPE  a_BlockType)
static

Definition at line 10 of file RedstoneLampHandler.h.

◆ Update()

static void RedstoneLampHandler::Update ( cChunk a_Chunk,
cChunk ,
Vector3i  a_Position,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_Meta,
const PowerLevel  Power 
)
static

Definition at line 20 of file RedstoneLampHandler.h.