Cuberite
A lightweight, fast and extensible game server for Minecraft
Namespaces | Enumerations | Functions
RedstoneWireHandler.h File Reference
#include "RedstoneHandler.h"
#include "Registries/BlockStates.h"
Include dependency graph for RedstoneWireHandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 RedstoneWireHandler
 

Enumerations

enum class  RedstoneWireHandler::TemporaryDirection { RedstoneWireHandler::Up , RedstoneWireHandler::Side }
 A unified representation of wire direction. More...
 

Functions

template<class OffsetCallback >
static BlockState RedstoneWireHandler::DoWithDirectionState (const Vector3i Offset, BlockState Block, OffsetCallback Callback)
 Invokes Callback with the wire's left, front, and right direction state corresponding to Offset. More...
 
static void RedstoneWireHandler::ForValidSourcePositions (const cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, ForEachSourceCallback &Callback)
 
static PowerLevel RedstoneWireHandler::GetPowerDeliveredToPosition (const cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType, bool IsLinked)
 
static bool RedstoneWireHandler::IsDirectlyConnectingMechanism (BLOCKTYPE a_Block, NIBBLETYPE a_BlockMeta, const Vector3i a_Offset)
 
static bool RedstoneWireHandler::IsYPTerracingBlocked (const cChunk &a_Chunk, const Vector3i a_Position)
 
static void RedstoneWireHandler::SetDirectionState (const Vector3i Offset, BlockState &Block, TemporaryDirection Direction)
 Adjusts a given wire block so that the direction represented by Offset has state Direction. More...
 
static void RedstoneWireHandler::SetWireState (const cChunk &a_Chunk, const Vector3i a_Position)
 Temporary. More...
 
static void RedstoneWireHandler::Update (cChunk &a_Chunk, cChunk &CurrentlyTicking, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, const PowerLevel Power)