![]() |
fCraft
0.636
Custom Minecraft Server
|
Struct representing a single block change. You may safely cast byte* pointers directly to BlockDBEntry* and vice versa. More...
Public Member Functions | |
| BlockDBEntry (int timestamp, int playerID, short x, short y, short z, Block oldBlock, Block newBlock, BlockChangeContext flags) | |
| BlockDBEntry (int timestamp, int playerID, Vector3I coords, Block oldBlock, Block newBlock, BlockChangeContext flags) | |
| void | Serialize (BinaryWriter writer) |
Public Attributes | |
| readonly int | Timestamp |
| UTC Unix timestamp of the change. | |
| readonly int | PlayerID |
| Numeric PlayerDB id of the player who made the change. | |
| readonly short | X |
| X coordinate (horizontal), in terms of blocks. | |
| readonly short | Y |
| Y coordinate (horizontal), in terms of blocks. | |
| readonly short | Z |
| Z coordinate (vertical), in terms of blocks. | |
| readonly Block | OldBlock |
| Block that previously occupied this coordinate | |
| readonly Block | NewBlock |
| Block that now occupies this coordinate | |
| readonly BlockChangeContext | Context |
| Context for this block change. | |
Properties | |
| Vector3I | Coord [get] |
| Change's (X,Y,Z) coordinates as a vector. | |
Struct representing a single block change. You may safely cast byte* pointers directly to BlockDBEntry* and vice versa.
| fCraft.BlockDBEntry.BlockDBEntry | ( | int | timestamp, |
| int | playerID, | ||
| short | x, | ||
| short | y, | ||
| short | z, | ||
| Block | oldBlock, | ||
| Block | newBlock, | ||
| BlockChangeContext | flags | ||
| ) |
| fCraft.BlockDBEntry.BlockDBEntry | ( | int | timestamp, |
| int | playerID, | ||
| Vector3I | coords, | ||
| Block | oldBlock, | ||
| Block | newBlock, | ||
| BlockChangeContext | flags | ||
| ) |
| void fCraft.BlockDBEntry.Serialize | ( | BinaryWriter | writer | ) |
| readonly BlockChangeContext fCraft.BlockDBEntry.Context |
Context for this block change.
| readonly Block fCraft.BlockDBEntry.NewBlock |
Block that now occupies this coordinate
| readonly Block fCraft.BlockDBEntry.OldBlock |
Block that previously occupied this coordinate
| readonly int fCraft.BlockDBEntry.PlayerID |
Numeric PlayerDB id of the player who made the change.
| readonly int fCraft.BlockDBEntry.Timestamp |
UTC Unix timestamp of the change.
| readonly short fCraft.BlockDBEntry.X |
X coordinate (horizontal), in terms of blocks.
| readonly short fCraft.BlockDBEntry.Y |
Y coordinate (horizontal), in terms of blocks.
| readonly short fCraft.BlockDBEntry.Z |
Z coordinate (vertical), in terms of blocks.
|
get |
Change's (X,Y,Z) coordinates as a vector.
1.8.2