Cuberite
A lightweight, fast and extensible game server for Minecraft
Enumerations | Functions
Block::NoteBlock Namespace Reference

Enumerations

enum class  Instrument {
  Harp , Basedrum , Snare , Hat ,
  Bass , Flute , Bell , Guitar ,
  Chime , Xylophone , IronXylophone , CowBell ,
  Didgeridoo , Bit , Banjo , Pling
}
 

Functions

enum Instrument Instrument (const BlockState Block)
 
unsigned char Note (const BlockState Block)
 
BlockState NoteBlock ()
 
constexpr BlockState NoteBlock (const enum Instrument Instrument, const unsigned char Note, const bool Powered)
 
bool Powered (const BlockState Block)
 

Enumeration Type Documentation

◆ Instrument

Enumerator
Harp 
Basedrum 
Snare 
Hat 
Bass 
Flute 
Bell 
Guitar 
Chime 
Xylophone 
IronXylophone 
CowBell 
Didgeridoo 
Bit 
Banjo 
Pling 

Definition at line 13082 of file BlockStates.h.

Function Documentation

◆ Instrument()

Definition at line 7284 of file BlockStates.cpp.

◆ Note()

unsigned char Block::NoteBlock::Note ( const BlockState  Block)

Definition at line 7310 of file BlockStates.cpp.

◆ NoteBlock() [1/2]

BlockState Block::NoteBlock::NoteBlock ( )

Definition at line 7284 of file BlockStates.cpp.

◆ NoteBlock() [2/2]

constexpr BlockState Block::NoteBlock::NoteBlock ( const enum Instrument  Instrument,
const unsigned char  Note,
const bool  Powered 
)
constexpr

Definition at line 13101 of file BlockStates.h.

◆ Powered()

bool Block::NoteBlock::Powered ( const BlockState  Block)

Definition at line 7341 of file BlockStates.cpp.