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

Functions

static void ForValidSourcePositions (const cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, ForEachSourceCallback &Callback)
 
static unsigned char GetFrontPowerLevel (NIBBLETYPE a_Meta, unsigned char a_HighestSidePowerLevel, unsigned char a_HighestRearPowerLevel)
 
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 (cChunk &a_Chunk, Vector3i Position, BLOCKTYPE BlockType, NIBBLETYPE 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 RedstoneComparatorHandler::ForValidSourcePositions ( const cChunk a_Chunk,
Vector3i  a_Position,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_Meta,
ForEachSourceCallback Callback 
)
static

Definition at line 128 of file RedstoneComparatorHandler.h.

◆ GetFrontPowerLevel()

static unsigned char RedstoneComparatorHandler::GetFrontPowerLevel ( NIBBLETYPE  a_Meta,
unsigned char  a_HighestSidePowerLevel,
unsigned char  a_HighestRearPowerLevel 
)
static

Definition at line 12 of file RedstoneComparatorHandler.h.

◆ GetPowerDeliveredToPosition()

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

Definition at line 26 of file RedstoneComparatorHandler.h.

◆ GetPowerLevel()

static unsigned char RedstoneComparatorHandler::GetPowerLevel ( cChunk a_Chunk,
Vector3i  Position,
BLOCKTYPE  BlockType,
NIBBLETYPE  Meta 
)
static

Definition at line 38 of file RedstoneComparatorHandler.h.

◆ Update()

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

Definition at line 82 of file RedstoneComparatorHandler.h.