diff options
Diffstat (limited to 'src/nodemetadata.cpp')
-rw-r--r-- | src/nodemetadata.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/nodemetadata.cpp b/src/nodemetadata.cpp index 775b59b24..fca4e5b84 100644 --- a/src/nodemetadata.cpp +++ b/src/nodemetadata.cpp @@ -105,6 +105,34 @@ std::string SignNodeMetadata::infoText() } /* + ChestNodeMetadata +*/ + +ChestNodeMetadata::ChestNodeMetadata() +{ + NodeMetadata::registerType(typeId(), create); +} +u16 ChestNodeMetadata::typeId() const +{ + return CONTENT_CHEST; +} +NodeMetadata* ChestNodeMetadata::create(std::istream &is) +{ + return new ChestNodeMetadata(); +} +NodeMetadata* ChestNodeMetadata::clone() +{ + return new ChestNodeMetadata(); +} +void ChestNodeMetadata::serializeBody(std::ostream &os) +{ +} +std::string ChestNodeMetadata::infoText() +{ + return "Chest"; +} + +/* NodeMetadatalist */ |