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

Functions

static void ForValidSourcePositions (const cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, ForEachSourceCallback &Callback)
 
static const char * GetClickOffSound (BLOCKTYPE a_BlockType)
 
static const char * GetClickOnSound (BLOCKTYPE a_BlockType)
 
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 (const cChunk &Chunk, const Vector3i Position, const BLOCKTYPE BlockType)
 
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 PressurePlateHandler::ForValidSourcePositions ( const cChunk a_Chunk,
Vector3i  a_Position,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_Meta,
ForEachSourceCallback Callback 
)
static

Definition at line 220 of file PressurePlateHandler.h.

◆ GetClickOffSound()

static const char* PressurePlateHandler::GetClickOffSound ( BLOCKTYPE  a_BlockType)
static

Definition at line 90 of file PressurePlateHandler.h.

◆ GetClickOnSound()

static const char* PressurePlateHandler::GetClickOnSound ( BLOCKTYPE  a_BlockType)
static

Definition at line 73 of file PressurePlateHandler.h.

◆ GetPowerDeliveredToPosition()

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

Definition at line 107 of file PressurePlateHandler.h.

◆ GetPowerLevel()

static unsigned char PressurePlateHandler::GetPowerLevel ( const cChunk Chunk,
const Vector3i  Position,
const BLOCKTYPE  BlockType 
)
static

Definition at line 13 of file PressurePlateHandler.h.

◆ Update()

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

Definition at line 118 of file PressurePlateHandler.h.