Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Public Attributes | List of all members
sSetBlock Struct Reference

#include <ChunkDef.h>

Public Member Functions

Vector3i GetAbsolutePos () const
 Returns the absolute coords of the stored block. More...
 
Vector3i GetRelativePos () const
 Returns the relative position of the stored block within its chunk. More...
 
int GetX (void) const
 Returns the absolute X coord of the stored block. More...
 
int GetY (void) const
 Returns the absolute Y coord of the stored block. More...
 
int GetZ (void) const
 Returns the absolute Z coord of the stored block. More...
 
 sSetBlock (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
 
 sSetBlock (int a_ChunkX, int a_ChunkZ, int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
 
 sSetBlock (Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
 

Public Attributes

NIBBLETYPE m_BlockMeta
 
BLOCKTYPE m_BlockType
 
int m_ChunkX
 
int m_ChunkZ
 
int m_RelX
 
int m_RelY
 
int m_RelZ
 

Detailed Description

Definition at line 386 of file ChunkDef.h.

Constructor & Destructor Documentation

◆ sSetBlock() [1/3]

sSetBlock::sSetBlock ( int  a_BlockX,
int  a_BlockY,
int  a_BlockZ,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
)
inline

Definition at line 393 of file ChunkDef.h.

◆ sSetBlock() [2/3]

sSetBlock::sSetBlock ( Vector3i  a_BlockPos,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
)
inline

Definition at line 403 of file ChunkDef.h.

◆ sSetBlock() [3/3]

sSetBlock::sSetBlock ( int  a_ChunkX,
int  a_ChunkZ,
int  a_RelX,
int  a_RelY,
int  a_RelZ,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
)
inline

Definition at line 408 of file ChunkDef.h.

Member Function Documentation

◆ GetAbsolutePos()

Vector3i sSetBlock::GetAbsolutePos ( ) const
inline

Returns the absolute coords of the stored block.

Definition at line 429 of file ChunkDef.h.

◆ GetRelativePos()

Vector3i sSetBlock::GetRelativePos ( ) const
inline

Returns the relative position of the stored block within its chunk.

Definition at line 435 of file ChunkDef.h.

◆ GetX()

int sSetBlock::GetX ( void  ) const
inline

Returns the absolute X coord of the stored block.

Definition at line 419 of file ChunkDef.h.

◆ GetY()

int sSetBlock::GetY ( void  ) const
inline

Returns the absolute Y coord of the stored block.

Is the same as relative Y coords, because there's no Y relativization.

Definition at line 423 of file ChunkDef.h.

◆ GetZ()

int sSetBlock::GetZ ( void  ) const
inline

Returns the absolute Z coord of the stored block.

Definition at line 426 of file ChunkDef.h.

Member Data Documentation

◆ m_BlockMeta

NIBBLETYPE sSetBlock::m_BlockMeta

Definition at line 391 of file ChunkDef.h.

◆ m_BlockType

BLOCKTYPE sSetBlock::m_BlockType

Definition at line 390 of file ChunkDef.h.

◆ m_ChunkX

int sSetBlock::m_ChunkX

Definition at line 389 of file ChunkDef.h.

◆ m_ChunkZ

int sSetBlock::m_ChunkZ

Definition at line 389 of file ChunkDef.h.

◆ m_RelX

int sSetBlock::m_RelX

Definition at line 388 of file ChunkDef.h.

◆ m_RelY

int sSetBlock::m_RelY

Definition at line 388 of file ChunkDef.h.

◆ m_RelZ

int sSetBlock::m_RelZ

Definition at line 388 of file ChunkDef.h.


The documentation for this struct was generated from the following file: