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

Functions

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

Function Documentation

◆ ForValidSourcePositions()

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

Definition at line 97 of file RedstoneToggleHandler.h.

◆ GetOffsetAttachedTo()

static Vector3i RedstoneToggleHandler::GetOffsetAttachedTo ( Vector3i  a_Position,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_Meta 
)
static

Definition at line 13 of file RedstoneToggleHandler.h.

◆ GetPowerDeliveredToPosition()

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

Definition at line 77 of file RedstoneToggleHandler.h.

◆ GetPowerLevel()

static unsigned char RedstoneToggleHandler::GetPowerLevel ( BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_Meta 
)
static

Definition at line 62 of file RedstoneToggleHandler.h.

◆ Update()

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

Definition at line 92 of file RedstoneToggleHandler.h.