Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
PoweredRailHandler 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 Vector3i GetPoweredRailAdjacentXZCoordinateOffset (NIBBLETYPE a_Meta)
 Get the offset along which the rail faces. More...
 
static void Update (cChunk &a_Chunk, cChunk &CurrentlyTickingChunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, const PowerLevel Power)
 

Function Documentation

◆ ForValidSourcePositions()

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

Definition at line 81 of file PoweredRailHandler.h.

◆ GetPowerDeliveredToPosition()

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

Definition at line 30 of file PoweredRailHandler.h.

◆ GetPoweredRailAdjacentXZCoordinateOffset()

static Vector3i PoweredRailHandler::GetPoweredRailAdjacentXZCoordinateOffset ( NIBBLETYPE  a_Meta)
static

Get the offset along which the rail faces.

Not in cBlockRailHandler since specific to powered rails.

Definition at line 12 of file PoweredRailHandler.h.

◆ Update()

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

Definition at line 44 of file PoweredRailHandler.h.