Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Base class (interface) for piece modifiers. More...
#include <PiecePool.h>
Public Member Functions | |
virtual void | AssignSeed (int a_Seed) |
Called when the piece pool is assigned to a generator, so that the modifiers can access world seed. More... | |
virtual bool | InitializeFromString (const AString &a_Params, bool a_LogWarnings)=0 |
Initializes the modifier's parameters from the string representation. More... | |
virtual void | Modify (cBlockArea &a_Image, const Vector3i a_PiecePos, const int a_PieceNumRotations)=0 |
Called prior to writing piece to a chunk, so that modifiers can modify blocks in the blockarea. More... | |
virtual | ~cPieceModifier () |
Base class (interface) for piece modifiers.
Definition at line 152 of file PiecePool.h.
|
inlinevirtual |
Definition at line 156 of file PiecePool.h.
|
inlinevirtual |
Called when the piece pool is assigned to a generator, so that the modifiers can access world seed.
Reimplemented in cPieceModifierRandomizeBlocks.
Definition at line 170 of file PiecePool.h.
|
pure virtual |
Initializes the modifier's parameters from the string representation.
a_Params is the string containing only the parameters If a_LogWarnings is true, logs any problems to the console. Returns true if successful, false if the string parsing failed. Used when loading the modifier from a file.
Implemented in cPieceModifierRandomizeBlocks.
|
pure virtual |
Called prior to writing piece to a chunk, so that modifiers can modify blocks in the blockarea.
Implemented in cPieceModifierRandomizeBlocks.