Skip to content

Class endstone::BlockData

ClassList > endstone > BlockData

Represents the data related to a live block.

  • #include <endstone/block/block_data.h>

Public Functions

Type Name
virtual BlockStates getBlockStates () const = 0
Gets the block states, which when passed into a method such as Server::createBlockData(type, block_states) will unambiguously recreate this instance.
virtual std::uint32_t getRuntimeId () const = 0
Get the runtime ID for this block.
virtual std::string getType () const = 0
Get the block type represented by this block data.
virtual ~BlockData () = default

Public Functions Documentation

function getBlockStates

Gets the block states, which when passed into a method such as Server::createBlockData(type, block_states) will unambiguously recreate this instance.

virtual BlockStates endstone::BlockData::getBlockStates () const = 0

Returns:

the block states for this block


function getRuntimeId

Get the runtime ID for this block.

virtual std::uint32_t endstone::BlockData::getRuntimeId () const = 0

Returns:

the runtime id for this block


function getType

Get the block type represented by this block data.

virtual std::string endstone::BlockData::getType () const = 0

Returns:

the block type


function ~BlockData

virtual endstone::BlockData::~BlockData () = default


The documentation for this class was generated from the following file include/endstone/block/block_data.h